openworm / hodgkin_huxley_tutorial

A repository containing code for a number of tutorials on the Hodgkin Huxley model, including an interactive Jupyter notebook
GNU Lesser General Public License v3.0
39 stars 9 forks source link

Use numpy to address SciPy 2.0.0 deprecation warnings #17

Closed sanjayankur31 closed 4 years ago

sanjayankur31 commented 4 years ago

Addresses deprecation warnings:

$ python HodgkinHuxley.py
/home/asinha/Documents/02_Code/00_mine/2020-OSB/OSB-models/hodgkin_huxley_tutorial/Tutorial/Source/HodgkinHuxley.py:29: DeprecationWarning: scipy.arange is deprecated and will be removed in SciPy 2.0.0, use numpy.arange instead
  t = sp.arange(0.0, 450.0, 0.01)
/home/asinha/Documents/02_Code/00_mine/2020-OSB/OSB-models/hodgkin_huxley_tutorial/Tutorial/Source/HodgkinHuxley.py:34: DeprecationWarning: scipy.exp is deprecated and will be removed in SciPy 2.0.0, use numpy.exp instead
  return 0.1*(V+40.0)/(1.0 - sp.exp(-(V+40.0) / 10.0))
/home/asinha/Documents/02_Code/00_mine/2020-OSB/OSB-models/hodgkin_huxley_tutorial/Tutorial/Source/HodgkinHuxley.py:38: DeprecationWarning: scipy.exp is deprecated and will be removed in SciPy 2.0.0, use numpy.exp instead
  return 4.0*sp.exp(-(V+65.0) / 18.0)
/home/asinha/Documents/02_Code/00_mine/2020-OSB/OSB-models/hodgkin_huxley_tutorial/Tutorial/Source/HodgkinHuxley.py:42: DeprecationWarning: scipy.exp is deprecated and will be removed in SciPy 2.0.0, use numpy.exp instead
  return 0.07*sp.exp(-(V+65.0) / 20.0)
/home/asinha/Documents/02_Code/00_mine/2020-OSB/OSB-models/hodgkin_huxley_tutorial/Tutorial/Source/HodgkinHuxley.py:46: DeprecationWarning: scipy.exp is deprecated and will be removed in SciPy 2.0.0, use numpy.exp instead
  return 1.0/(1.0 + sp.exp(-(V+35.0) / 10.0))
/home/asinha/Documents/02_Code/00_mine/2020-OSB/OSB-models/hodgkin_huxley_tutorial/Tutorial/Source/HodgkinHuxley.py:50: DeprecationWarning: scipy.exp is deprecated and will be removed in SciPy 2.0.0, use numpy.exp instead
  return 0.01*(V+55.0)/(1.0 - sp.exp(-(V+55.0) / 10.0))
/home/asinha/Documents/02_Code/00_mine/2020-OSB/OSB-models/hodgkin_huxley_tutorial/Tutorial/Source/HodgkinHuxley.py:54: DeprecationWarning: scipy.exp is deprecated and will be removed in SciPy 2.0.0, use numpy.exp instead
  return 0.125*sp.exp(-(V+65) / 80.0)