bmtool 0.6.6.1__tar.gz → 0.6.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.6.6.1 → bmtool-0.6.6.2}/PKG-INFO +1 -1
  2. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/synapses.py +16 -9
  3. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool.egg-info/PKG-INFO +1 -1
  4. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/setup.py +1 -1
  5. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/LICENSE +0 -0
  6. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/README.md +0 -0
  7. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/SLURM.py +0 -0
  8. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/__init__.py +0 -0
  9. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/__main__.py +0 -0
  10. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/bmplot.py +0 -0
  11. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/connectors.py +0 -0
  12. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/debug/__init__.py +0 -0
  13. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/debug/commands.py +0 -0
  14. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/debug/debug.py +0 -0
  15. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/graphs.py +0 -0
  16. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/manage.py +0 -0
  17. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/plot_commands.py +0 -0
  18. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/singlecell.py +0 -0
  19. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/util/__init__.py +0 -0
  20. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/util/commands.py +0 -0
  21. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/util/neuron/__init__.py +0 -0
  22. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/util/neuron/celltuner.py +0 -0
  23. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/util/util.py +0 -0
  24. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool.egg-info/SOURCES.txt +0 -0
  25. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool.egg-info/dependency_links.txt +0 -0
  26. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool.egg-info/entry_points.txt +0 -0
  27. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool.egg-info/requires.txt +0 -0
  28. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool.egg-info/top_level.txt +0 -0
  29. {bmtool-0.6.6.1 → bmtool-0.6.6.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: bmtool
3
- Version: 0.6.6.1
3
+ Version: 0.6.6.2
4
4
  Summary: BMTool
5
5
  Home-page: https://github.com/cyneuro/bmtool
6
6
  Download-URL:
@@ -687,8 +687,8 @@ class SynapseTuner:
687
687
  display(ui)
688
688
  update_ui()
689
689
 
690
- def analyze_frequency_response(self, freqs=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 35, 50, 100, 200],
691
- delay=250, plot=True):
690
+ def stp_frequency_response(self, freqs=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 35, 50, 100, 200],
691
+ delay=250, plot=True,log_plot=True):
692
692
  """
693
693
  Analyze synaptic response across different stimulation frequencies.
694
694
 
@@ -729,11 +729,11 @@ class SynapseTuner:
729
729
  self.ispk = original_ispk
730
730
 
731
731
  if plot:
732
- self._plot_frequency_analysis(results)
732
+ self._plot_frequency_analysis(results,log_plot=log_plot)
733
733
 
734
734
  return results
735
735
 
736
- def _plot_frequency_analysis(self, results):
736
+ def _plot_frequency_analysis(self, results,log_plot):
737
737
  """
738
738
  Plot the frequency-dependent synaptic properties.
739
739
 
@@ -744,11 +744,12 @@ class SynapseTuner:
744
744
  """
745
745
  fig, (ax1, ax2, ax3) = plt.subplots(1, 3, figsize=(15, 5))
746
746
 
747
- # Convert frequencies to log scale for better visualization
748
- frequencies = np.array(results['frequencies'])
749
747
 
750
748
  # Plot PPR
751
- ax1.semilogx(frequencies, results['ppr'], 'o-')
749
+ if log_plot:
750
+ ax1.semilogx(results['frequencies'], results['ppr'], 'o-')
751
+ else:
752
+ ax1.plot(results['frequencies'], results['ppr'], 'o-')
752
753
  ax1.axhline(y=1, color='gray', linestyle='--', alpha=0.5)
753
754
  ax1.set_xlabel('Frequency (Hz)')
754
755
  ax1.set_ylabel('Paired Pulse Ratio')
@@ -756,7 +757,10 @@ class SynapseTuner:
756
757
  ax1.grid(True)
757
758
 
758
759
  # Plot Induction
759
- ax2.semilogx(frequencies, results['induction'], 'o-')
760
+ if log_plot:
761
+ ax2.semilogx(results['frequencies'], results['induction'], 'o-')
762
+ else:
763
+ ax2.plot(results['frequencies'], results['induction'], 'o-')
760
764
  ax2.axhline(y=0, color='gray', linestyle='--', alpha=0.5)
761
765
  ax2.set_xlabel('Frequency (Hz)')
762
766
  ax2.set_ylabel('Induction')
@@ -764,7 +768,10 @@ class SynapseTuner:
764
768
  ax2.grid(True)
765
769
 
766
770
  # Plot Recovery
767
- ax3.semilogx(frequencies, results['recovery'], 'o-')
771
+ if log_plot:
772
+ ax3.semilogx(results['frequencies'], results['recovery'], 'o-')
773
+ else:
774
+ ax3.plot(results['frequencies'], results['recovery'], 'o-')
768
775
  ax3.axhline(y=0, color='gray', linestyle='--', alpha=0.5)
769
776
  ax3.set_xlabel('Frequency (Hz)')
770
777
  ax3.set_ylabel('Recovery')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: bmtool
3
- Version: 0.6.6.1
3
+ Version: 0.6.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.6.6.1',
9
+ version='0.6.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