Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'ecell4_base.core.NetworkModel' object has no attribute 'is_static' #96

Closed
kozo2 opened this issue Jan 17, 2021 · 1 comment
Assignees

Comments

@kozo2
Copy link
Member

kozo2 commented Jan 17, 2021

I got the following error with this code.

%matplotlib inline
from ecell4.prelude import *

with reaction_rules():
    A + B == C | (0.01, 0.3)

run_simulation(10, {'A': 60, 'B': 60})
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-1-b1a903e2ab04> in <module>
      5     A + B == C | (0.01, 0.3)
      6 
----> 7 run_simulation(10, {'A': 60, 'B': 60})

~\miniconda3\lib\site-packages\ecell4\util\simulation.py in run_simulation(t, y0, volume, model, solver, ndiv, species_list, structures, observers, rndseed)
    140     """
    141     session = Session(model=model, y0=y0, structures=structures, volume=volume)
--> 142     ret = session.run(
    143         t, solver=solver, rndseed=rndseed, ndiv=ndiv, species_list=species_list, observers=observers)
    144     return ret

~\miniconda3\lib\site-packages\ecell4\util\session.py in run(self, t, solver, rndseed, ndiv, species_list, observers)
    408         observers = (obs, ) + tuple(observers)
    409 
--> 410         if isinstance(f, ecell4_base.ode.ODEFactory) and not self.model.is_static():
    411             warnings.warn("The ODE solver requires a `NetworkModel`. Use `expand`.")
    412             model = self.model.expand(w.list_species())

AttributeError: 'ecell4_base.core.NetworkModel' object has no attribute 'is_static'

I'm using

ecell4                 1.2.0
ecell4-base            2.0.5
@kozo2 kozo2 assigned kozo2 and kaizu and unassigned kaizu Jan 17, 2021
@kozo2
Copy link
Member Author

kozo2 commented Jan 17, 2021

This was because I didn't update the version of echol4_base. Close this issue.

@kozo2 kozo2 closed this as completed Jan 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants