From e8c688e19926a9039e807610445f7195df224d9f Mon Sep 17 00:00:00 2001 From: pgleeson Date: Tue, 20 Feb 2024 14:47:08 +0000 Subject: [PATCH 1/2] Better plotting in sweep --- docs/NeuroMLlite_specification.json | 2 +- docs/NeuroMLlite_specification.yaml | 2 +- docs/README.md | 2 +- examples/LEMS_SimExample3.xml | 2 +- examples/LEMS_SimExample4.xml | 2 +- neuromllite/sweep/ParameterSweep.py | 8 ++++---- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/NeuroMLlite_specification.json b/docs/NeuroMLlite_specification.json index 9aeefa5..b808453 100644 --- a/docs/NeuroMLlite_specification.json +++ b/docs/NeuroMLlite_specification.json @@ -1,5 +1,5 @@ { - "version": "NeuroMLlite v0.5.8", + "version": "NeuroMLlite v0.5.9", "specification": { "Network": { "definition": "A Network containing multiple Population's, connected by Projection's and receiving Input's", diff --git a/docs/NeuroMLlite_specification.yaml b/docs/NeuroMLlite_specification.yaml index 13278f1..cffb2d7 100644 --- a/docs/NeuroMLlite_specification.yaml +++ b/docs/NeuroMLlite_specification.yaml @@ -1,4 +1,4 @@ -version: NeuroMLlite v0.5.8 +version: NeuroMLlite v0.5.9 specification: Network: definition: A Network containing multiple Population's, connected by Projection's diff --git a/docs/README.md b/docs/README.md index a814b0d..920aeb5 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,4 +1,4 @@ -# Specification of NeuroMLlite v0.5.8 +# Specification of NeuroMLlite v0.5.9 **Note: the NeuroMLlite specification is still in development! Subject to change...** ## Network diff --git a/examples/LEMS_SimExample3.xml b/examples/LEMS_SimExample3.xml index d5abac4..f1996be 100644 --- a/examples/LEMS_SimExample3.xml +++ b/examples/LEMS_SimExample3.xml @@ -2,7 +2,7 @@ diff --git a/examples/LEMS_SimExample4.xml b/examples/LEMS_SimExample4.xml index 683c2b1..f0a4560 100644 --- a/examples/LEMS_SimExample4.xml +++ b/examples/LEMS_SimExample4.xml @@ -2,7 +2,7 @@ diff --git a/neuromllite/sweep/ParameterSweep.py b/neuromllite/sweep/ParameterSweep.py index 23cc99e..3afb9be 100644 --- a/neuromllite/sweep/ParameterSweep.py +++ b/neuromllite/sweep/ParameterSweep.py @@ -98,7 +98,7 @@ def __init__( "Traces generated from %s" % self.sim.id, # Title labels=[], xaxis="Time (ms)", # x axis legend - yaxis="Membrane potential (mV)", # y axis legend + yaxis="(SI units)", # y axis legend title_above_plot=True, show_plot_already=False, ) # Save figure @@ -283,7 +283,7 @@ def _run_all(self): label = "%s (%s)" % (y, params) self.ax.plot( [t * 1000 for t in traces["t"]], - [v * 1000 for v in traces[y]], + [v for v in traces[y]], label=label, ) @@ -532,7 +532,7 @@ def plotLines( logx=logx, logy=logy, show_plot_already=False, - legend_position="right", + legend_position="bottom center", save_figure_to=save_figure_to, ) # Save figure @@ -766,7 +766,7 @@ def run_once(self, job_dir, **kwargs): vary = {"c": [-3, -1, 1, 3]} # vary = {'a':[.8,1,1.2]} # vary = {'eta':['100Hz']} - # vary = {'stim_amp':['1.5pA']} + vary = {'I':[5,5.2]} simulator = "jNeuroML" simulator = "jNeuroML_NEURON" From c2de4a41c9eb5ef5762bdb281c7cb7a3ff499fed Mon Sep 17 00:00:00 2001 From: pgleeson Date: Tue, 20 Feb 2024 19:13:47 +0000 Subject: [PATCH 2/2] Regenerated --- examples/LEMS_SimExample3.xml | 2 +- examples/LEMS_SimExample4.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/LEMS_SimExample3.xml b/examples/LEMS_SimExample3.xml index f1996be..2b1e0a9 100644 --- a/examples/LEMS_SimExample3.xml +++ b/examples/LEMS_SimExample3.xml @@ -2,7 +2,7 @@ diff --git a/examples/LEMS_SimExample4.xml b/examples/LEMS_SimExample4.xml index f0a4560..b861b73 100644 --- a/examples/LEMS_SimExample4.xml +++ b/examples/LEMS_SimExample4.xml @@ -2,7 +2,7 @@