Skip to content

Commit

Permalink
Tweak eden times
Browse files Browse the repository at this point in the history
Give access to weight_array_figures in MatrixHandler
  • Loading branch information
pgleeson committed May 1, 2024
1 parent 2513478 commit d667049
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/LEMS_SimExample3.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!--
This LEMS file has been automatically generated using PyNeuroML v1.2.3 (libNeuroML v0.5.8)
This LEMS file has been automatically generated using PyNeuroML v1.2.13 (libNeuroML v0.5.9)
-->

Expand Down
2 changes: 1 addition & 1 deletion examples/LEMS_SimExample4.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!--
This LEMS file has been automatically generated using PyNeuroML v1.2.3 (libNeuroML v0.5.8)
This LEMS file has been automatically generated using PyNeuroML v1.2.13 (libNeuroML v0.5.9)
-->

Expand Down
4 changes: 2 additions & 2 deletions examples/test_files/.test.ex4.jnmleden.omt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ experiments:
spike detection:
method: threshold
threshold: -64
tolerance: 0.0002527679474217274
tolerance: 0.00025278058645101804

v1:
observables:
Expand All @@ -26,4 +26,4 @@ experiments:
spike detection:
method: threshold
threshold: -69
tolerance: 0.0002327287423609406
tolerance: 0.00023269200151868833
4 changes: 4 additions & 0 deletions neuromllite/MatrixHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class MatrixHandler(ConnectivityHandler):
colormaps_used = []

weight_arrays_to_show = {}
weight_array_figures = {}

def __init__(self, level=10, nl_network=None, show_already=True, save_figs_to_dir=None):
self.nl_network = nl_network
Expand Down Expand Up @@ -382,6 +383,9 @@ def finalise_document(self):
save_figure_to = os.path.join(self.save_figs_to_dir, '%s_%s.png'%(self.network_id, safe))
plt.savefig(save_figure_to, bbox_inches="tight")
print_v("Saved image to %s of plot: %s" % (save_figure_to, title))
self.weight_array_figures[title] = save_figure_to



print_v("Generating matrix for: %s" % self.network_id)

Expand Down

0 comments on commit d667049

Please sign in to comment.