BhallaLab / moose

MOOSE simulator.
http://moose.ncbs.res.in
GNU General Public License v3.0
25 stars 19 forks source link

AttributeError: module 'rdesigneur' has no attribute 'rdesigneur' #273

Open ishanseth18 opened 3 years ago

ishanseth18 commented 3 years ago

Hello,

Another student is getting this error in her code. We do not know why. The same code is running perfectly fine on my computer. Do you have any suggestions? This error is coming up for all rdesigneur examples.

hrani commented 3 years ago

Hi all,

Could you please expand moose version and how it was installed.

On Wed, Jun 2, 2021 at 3:31 AM ishanseth18 @.***> wrote:

Hello,

Another student is getting this error in her code. We do not know why. The same code is running perfectly fine on my computer. Do you have any suggestions? This error is coming up for all rdesigneur examples.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/BhallaLab/moose/issues/273, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYWDQ76WXMKQEEXO6KRHKTTQVKEXANCNFSM455PMYCA .

lungsi commented 3 years ago

I am also getting the same error while attempting to run the example, ex3.1_squid_vclamp.py.

Name: pymoose
Version: 3.1.5
Summary: Python scripting interface of MOOSE Simulator (https://moose.ncbs.res.in)
Home-page: http://moose.ncbs.res.in
Author: MOOSERes
Author-email: bhalla@ncbs.res.in
License: UNKNOWN
Requires: numpy

PS: Installation method used pip install pymoose.

hrani commented 3 years ago

But could you let us know what is the error?

On Wed, 8 Sep 2021 at 3:30 PM, lungsi @.***> wrote:

I am also getting the same error while attempting to run the example, ex3.1_squid_vclamp.py https://moose.readthedocs.io/en/latest/user/py/rdesigneur/rdes.html#hh-squid-model-with-voltage-clamp .

Name: pymoose Version: 3.1.5 Summary: Python scripting interface of MOOSE Simulator (https://moose.ncbs.res.in) Home-page: http://moose.ncbs.res.in Author: MOOSERes Author-email: @.*** License: UNKNOWN Requires: numpy

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BhallaLab/moose/issues/273#issuecomment-915097959, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYWDQ7CHE3LEY5SIH6BOGTUA4X3ZANCNFSM455PMYCA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

lungsi commented 3 years ago

Following import rdesigneur as rd doing this

rdes = rd.rdesigneur(
    chanProto = [['make_HH_Na()', 'Na'], ['make_HH_K()', 'K']],
    chanDistrib = [
        ['Na', 'soma', 'Gbar', '1200' ],
        ['K', 'soma', 'Gbar', '360' ]],
    stimList = [['soma', '1', '.', 'vclamp', '-0.065 + (t>0.1 && t<0.2) * 0.02' ]],
    plotList = [
        ['soma', '1', '.', 'Vm', 'Membrane potential'],
        ['soma', '1', 'vclamp', 'current', 'Soma holding current']
    ]
)

returns

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-3-b01d0fc1038d> in <module>
----> 1 rdes = rd.rdesigneur(
      2     chanProto = [['make_HH_Na()', 'Na'], ['make_HH_K()', 'K']],
      3     chanDistrib = [
      4         ['Na', 'soma', 'Gbar', '1200' ],
      5         ['K', 'soma', 'Gbar', '360' ]],

AttributeError: module 'rdesigneur' has no attribute 'rdesigneur'
hrani commented 3 years ago

I could reproduce the same error when moose installed via pip, with moose version 3.1.5 Will get back on this soon

On Thu, Sep 9, 2021 at 12:51 PM lungsi @.***> wrote:

Doing this

rdes = rd( chanProto = [['make_HH_Na()', 'Na'], ['make_HH_K()', 'K']], chanDistrib = [ ['Na', 'soma', 'Gbar', '1200' ], ['K', 'soma', 'Gbar', '360' ]], stimList = [['soma', '1', '.', 'vclamp', '-0.065 + (t>0.1 && t<0.2) * 0.02' ]], plotList = [ ['soma', '1', '.', 'Vm', 'Membrane potential'], ['soma', '1', 'vclamp', 'current', 'Soma holding current'] ] )

returns


TypeError Traceback (most recent call last)

in ----> 1 rdes = rd( 2 chanProto = [['make_HH_Na()', 'Na'], ['make_HH_K()', 'K']], 3 chanDistrib = [ 4 ['Na', 'soma', 'Gbar', '1200' ], 5 ['K', 'soma', 'Gbar', '360' ]], TypeError: 'module' object is not callable — You are receiving this because you commented. Reply to this email directly, view it on GitHub , or unsubscribe . Triage notifications on the go with GitHub Mobile for iOS or Android .
hrani commented 3 years ago

The rdesignuer tutorials are improved over the time, run these files getting latest version of pymoose upgrade pre-release version of pymoose using pip install pymoose --pre --upgrade (which would be 3.2.1dev) and run the examples

On Mon, Sep 13, 2021 at 6:34 PM Harsha Rani @.***> wrote:

I could reproduce the same error when moose installed via pip, with moose version 3.1.5 Will get back on this soon

On Thu, Sep 9, 2021 at 12:51 PM lungsi @.***> wrote:

Doing this

rdes = rd( chanProto = [['make_HH_Na()', 'Na'], ['make_HH_K()', 'K']], chanDistrib = [ ['Na', 'soma', 'Gbar', '1200' ], ['K', 'soma', 'Gbar', '360' ]], stimList = [['soma', '1', '.', 'vclamp', '-0.065 + (t>0.1 && t<0.2) * 0.02' ]], plotList = [ ['soma', '1', '.', 'Vm', 'Membrane potential'], ['soma', '1', 'vclamp', 'current', 'Soma holding current'] ] )

returns


TypeError Traceback (most recent call last)

in ----> 1 rdes = rd( 2 chanProto = [['make_HH_Na()', 'Na'], ['make_HH_K()', 'K']], 3 chanDistrib = [ 4 ['Na', 'soma', 'Gbar', '1200' ], 5 ['K', 'soma', 'Gbar', '360' ]], TypeError: 'module' object is not callable — You are receiving this because you commented. Reply to this email directly, view it on GitHub , or unsubscribe . Triage notifications on the go with GitHub Mobile for iOS or Android .
lungsi commented 3 years ago

Thanks @hrani this worked (have not checked with other examples).

hrani commented 3 years ago

Sure, let us know if any issue comes up with other examples

Moose team

On Fri, Sep 17, 2021 at 1:09 PM lungsi @.***> wrote:

Thanks @hrani https://github.com/hrani this worked (have not checked with other examples).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/BhallaLab/moose/issues/273#issuecomment-921578447, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYWDQ6NGPXGWL7FZDXNAWLUCLWCZANCNFSM455PMYCA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.