bmtool 0.5.6.1__tar.gz → 0.5.6.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/PKG-INFO +1 -1
  2. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/bmtool/synapses.py +17 -1
  3. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/bmtool.egg-info/PKG-INFO +1 -1
  4. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/setup.py +1 -1
  5. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/LICENSE +0 -0
  6. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/README.md +0 -0
  7. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/bmtool/SLURM.py +0 -0
  8. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/bmtool/__init__.py +0 -0
  9. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/bmtool/__main__.py +0 -0
  10. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/bmtool/bmplot.py +0 -0
  11. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/bmtool/connectors.py +0 -0
  12. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/bmtool/debug/__init__.py +0 -0
  13. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/bmtool/debug/commands.py +0 -0
  14. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/bmtool/debug/debug.py +0 -0
  15. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/bmtool/graphs.py +0 -0
  16. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/bmtool/manage.py +0 -0
  17. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/bmtool/plot_commands.py +0 -0
  18. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/bmtool/singlecell.py +0 -0
  19. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/bmtool/util/__init__.py +0 -0
  20. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/bmtool/util/commands.py +0 -0
  21. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/bmtool/util/neuron/__init__.py +0 -0
  22. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/bmtool/util/neuron/celltuner.py +0 -0
  23. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/bmtool/util/util.py +0 -0
  24. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/bmtool.egg-info/SOURCES.txt +0 -0
  25. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/bmtool.egg-info/dependency_links.txt +0 -0
  26. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/bmtool.egg-info/entry_points.txt +0 -0
  27. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/bmtool.egg-info/requires.txt +0 -0
  28. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/bmtool.egg-info/top_level.txt +0 -0
  29. {bmtool-0.5.6.1 → bmtool-0.5.6.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bmtool
3
- Version: 0.5.6.1
3
+ Version: 0.5.6.2
4
4
  Summary: BMTool
5
5
  Home-page: https://github.com/cyneuro/bmtool
6
6
  Download-URL:
@@ -55,10 +55,26 @@ class SynapseTuner:
55
55
  self.other_vars_to_record = other_vars_to_record
56
56
 
57
57
  if slider_vars:
58
- self.slider_vars = {key: value for key, value in self.synaptic_props.items() if key in slider_vars} # filters dict to have only the entries that have a key in the sliders var
58
+ # Start by filtering based on keys in slider_vars
59
+ self.slider_vars = {key: value for key, value in self.synaptic_props.items() if key in slider_vars}
60
+ # Iterate over slider_vars and check for missing keys in self.synaptic_props
61
+ for key in slider_vars:
62
+ # If the key is missing from synaptic_props, get the value using getattr
63
+ if key not in self.synaptic_props:
64
+ try:
65
+ # Get the alternative value from getattr dynamically
66
+ self.set_up_cell()
67
+ self.set_up_synapse()
68
+ value = getattr(self.syn,key)
69
+ print(value)
70
+ self.slider_vars[key] = value
71
+ except AttributeError as e:
72
+ print(f"Error accessing '{key}' in syn {self.syn}: {e}")
73
+
59
74
  else:
60
75
  self.slider_vars = self.synaptic_props
61
76
 
77
+
62
78
  h.tstop = general_settings['tstart'] + general_settings['tdur']
63
79
  h.dt = general_settings['dt'] # Time step (resolution) of the simulation in ms
64
80
  h.steps_per_ms = 1 / h.dt
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bmtool
3
- Version: 0.5.6.1
3
+ Version: 0.5.6.2
4
4
  Summary: BMTool
5
5
  Home-page: https://github.com/cyneuro/bmtool
6
6
  Download-URL:
@@ -6,7 +6,7 @@ with open("README.md", "r") as fh:
6
6
 
7
7
  setup(
8
8
  name="bmtool",
9
- version='0.5.6.1',
9
+ version='0.5.6.2',
10
10
  author="Neural Engineering Laboratory at the University of Missouri",
11
11
  author_email="gregglickert@mail.missouri.edu",
12
12
  description="BMTool",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes