Skip to content

Commit fffe419

Browse files
committed
Reformatted/checked py files with ruff for consistent coding style
1 parent 249694e commit fffe419

File tree

8 files changed

+145
-137
lines changed

8 files changed

+145
-137
lines changed

load_data.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212

1313
def reload_single_run(show_plot=True, verbose=False):
14-
1514
N_muscles = 24 # Number of muscles alongside the body
1615
N_units = 10 # Number of neural units in VNC
1716
N_neuronsperunit = 6 # Number of neurons in a VNC neural unit (6 neurons)
@@ -38,7 +37,7 @@ def reload_single_run(show_plot=True, verbose=False):
3837
act_data[0], act_data[i], label="SR %i" % (i - offset), linewidth=0.5
3938
)
4039
axs[0, 0].xaxis.set_ticklabels([])
41-
#plt.legend()
40+
# plt.legend()
4241

4342
axs[0, 1].imshow(sr, aspect="auto", interpolation="nearest")
4443
axs[0, 1].xaxis.set_ticklabels([])
@@ -51,7 +50,7 @@ def reload_single_run(show_plot=True, verbose=False):
5150
act_data[0], act_data[i], label="Neu %i" % (i - offset), linewidth=0.5
5251
)
5352
axs[1, 0].xaxis.set_ticklabels([])
54-
#plt.legend()
53+
# plt.legend()
5554

5655
neu = act_data[offset : N_neurons + offset]
5756
axs[1, 1].imshow(neu, aspect="auto", interpolation="nearest")
@@ -65,7 +64,7 @@ def reload_single_run(show_plot=True, verbose=False):
6564
act_data[0], act_data[i], label="Mu %i" % (i - offset), linewidth=0.5
6665
)
6766
axs[2, 0].xaxis.set_ticklabels([])
68-
#plt.legend()
67+
# plt.legend()
6968

7069
mus = act_data[offset : N_muscles + offset]
7170
axs[2, 1].imshow(mus, aspect="auto", interpolation="nearest")

neuromlLocal/build_network.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import neuroml.writers as writers
99
from neuroml import (
10-
ExplicitInput,
1110
Network,
1211
NeuroMLDocument,
1312
Population,
@@ -16,13 +15,13 @@
1615
ContinuousProjection,
1716
ContinuousConnectionInstanceW,
1817
ElectricalConnectionInstanceW,
19-
IncludeType,
2018
Property,
2119
Instance,
2220
Location,
2321
InputW,
2422
InputList,
2523
)
24+
# from neuroml import IncludeType
2625

2726
import utils
2827

neuromlLocal/main_sim.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def run(self, skip_to_time=-1):
196196

197197
self.ns.advance()
198198

199-
# print_("< Current NEURON time: %s ms" % self.h.t)
199+
print_("< Current NEURON time: %s ms" % self.h.t)
200200

201201
# values = []
202202
pop_list = [

0 commit comments

Comments
 (0)