Skip to content
Permalink
Browse files

Remove stochkit initial condition support for numeric ICs

Raw numeric intial conditions, as opposed to those wrapped in a
parameter or constant expression, are not allowed in PySB.
This removes a superfluous check for this condition in the
StochKit exporter.
  • Loading branch information...
alubbock committed Jan 9, 2019
1 parent 3f65185 commit 2848add85caf30780f31204393cba28b014715cf
Showing with 1 addition and 3 deletions.
  1. +1 −3 pysb/export/stochkit.py
@@ -165,9 +165,7 @@ def export(self, initials=None, param_values=None):
if si is None:
raise IndexError("Species not found in model: %s" %
repr(cp))
if isinstance(value_obj, (int, float)):
value = value_obj
elif value_obj in self.model.parameters:
if value_obj in self.model.parameters:
pi = self.model.parameters.index(value_obj)
value = param_values[pi]
elif value_obj in self.model.expressions:

0 comments on commit 2848add

Please sign in to comment.
You can’t perform that action at this time.