Skip to content

Commit 789f43a

Browse files
authored
Merge pull request #291 from NeuroML/experimental
To v1.1.10 & black formatting
2 parents c102f3e + fd4a5c6 commit 789f43a

24 files changed

+90
-75
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,5 @@ arm64
165165
/tests/plot/test_schematic_plot_2d_test_cell_nml_xz.png
166166
/tests/plot/test_schematic_plot_2d_test_cell_nml_yz.png
167167
/tests/analysis/*png
168+
*ken.sh
169+
/tests/plot/test_morphology*.png

examples/Vm_plot.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ def generate_Vm_vs_time_plot(
3030
simulator="jNeuroML",
3131
include_included=True,
3232
):
33-
3433
ref = "Test"
3534
logger.info(
3635
"Generating Vm(mV) vs Time(ms) plot for cell %s in %s using %s (Inj %snA / %sms dur after %sms delay)"

examples/component_evaluation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ def main(args=None):
1212
nml_doc = pynml.read_neuroml2_file(f)
1313

1414
for ct in nml_doc.ComponentType:
15-
1615
ys = []
1716
for v in vs:
1817
req_variables = {"v": "%sV" % v, "vShift": "10mV"}

examples/create_new_lems_file.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515

1616
if __name__ == "__main__":
17-
1817
############################################
1918
# Create a LEMS file "manually"...
2019

examples/generate_if_curve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
plot_voltage_traces=not nogui,
1717
plot_if=not nogui,
1818
plot_iv=not nogui,
19-
save_if_data_to="if_data.dat"
19+
save_if_data_to="if_data.dat",
2020
)

examples/generate_povray.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
21
from pyneuroml.povray.NeuroML2ToPOVRay import generate_povray
32

4-
#generate_povray(neuroml_file='test_data/ca1/TestOLMNet.net.nml')
3+
# generate_povray(neuroml_file='test_data/ca1/TestOLMNet.net.nml')
54

6-
generate_povray(neuroml_file='test_data/Purk2M9s.nml', scalez=3)
5+
generate_povray(neuroml_file="test_data/Purk2M9s.nml", scalez=3)

examples/quick_plot.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,28 @@
1414
siny = [math.sin(t / 10) for t in ts]
1515
cosey = [math.exp(t / -80) * math.cos(t / 5) for t in ts]
1616

17-
if '-i' in sys.argv:
17+
if "-i" in sys.argv:
1818
from pyneuroml.plot.Plot import generate_interactive_plot
1919

2020
# Generate a plot for this quickly with generate_interactive_plot
2121
ax = generate_interactive_plot(
2222
[ts, ts], # Add 2 sets of x values
2323
[siny, cosey], # Add 2 sets of y values
2424
"Some traces", # Title
25-
labels=['sin', 'cos'],
25+
labels=["sin", "cos"],
2626
xaxis="Time (ms)", # x axis legend
2727
yaxis="Arbitrary units...", # y axis legend
2828
linewidths=[1, 3], # Thicknesses of each trace
2929
save_figure_to="quick.png",
3030
) # Save figure
3131

3232
else:
33-
3433
# Generate a plot for this quickly with generate_plot
3534
ax = generate_plot(
3635
[ts, ts], # Add 2 sets of x values
3736
[siny, cosey], # Add 2 sets of y values
3837
"Some traces", # Title
39-
labels=['sin', 'cos'],
38+
labels=["sin", "cos"],
4039
xaxis="Time (ms)", # x axis legend
4140
yaxis="Arbitrary units...", # y axis legend
4241
linewidths=[1, 3], # Thicknesses of each trace

examples/record_channel_currents.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616

1717
if __name__ == "__main__":
18-
1918
root_dir = "test_data/ca1"
2019
cell_file = "cells/olm.cell.nml"
2120
cell_comp = "olmcell"

examples/test_data/realtime.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from pyneuroml import pynml
22

33

4-
command = 'python snooze.py'
5-
run_dir = '.'
4+
command = "python snooze.py"
5+
run_dir = "."
66

77
oo = pynml.execute_command_in_dir_with_realtime_output(command, run_dir, verbose=True)
88

examples/tune/tunePyr.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"cell:pyr_4_sym/channelDensity:Kdr_pyr_soma_group/mS_per_cm2": 80,
3131
}
3232
if "-tune" in sys.argv:
33-
3433
parameters = [
3534
"cell:pyr_4_sym/channelDensity:Na_pyr_soma_group/mS_per_cm2",
3635
"cell:pyr_4_sym/channelDensity:Kdr_pyr_soma_group/mS_per_cm2",

0 commit comments

Comments
 (0)