Skip to content

Commit

Permalink
last minute tweaks for test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
j-c-gibson committed Nov 21, 2024
1 parent 26919f8 commit 9905ea4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pygom/model/base_ode_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def __init__(self,

# # this three is not actually that useful
# # but lets leave it here for now
# self._parameters = None
#self._parameters = None
self._stochasticParam = None
self._hasNewTransition = HasNewTransition()

Expand Down
3 changes: 2 additions & 1 deletion src/pygom/model/deterministic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,8 @@ def _getEvalParam(self, state, time, parameters):

if parameters is not None:
self.parameters = parameters
elif self._parameters is None:
elif not hasattr(self, "_parameters") or self._parameters is None:
#elif self._parameters is None:
if self.num_param == 0:
pass
else:
Expand Down
2 changes: 1 addition & 1 deletion src/pygom/model/transition.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ class Transition:
'''

def __init__(self,
equation=None, # If equation is given
origin=None,
equation=None, # If equation is given
transition_type='ODE',
destination=None,
magnitude='1',
Expand Down

0 comments on commit 9905ea4

Please sign in to comment.