You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Output exceeds the [size limit](command:workbench.action.openSettings?%5B%22notebook.output.textLineLimit%22%5D). Open the full output data [in a text editor](command:workbench.action.openLargeOutput?5525f57f-5dc7-4aab-9af7-88b7e334db90)
---------------------------------------------------------------------------
ParameterError Traceback (most recent call last)
File [~/.local/lib/python3.10/site-packages/gillespy2/core/model.py:305](https://file+.vscode-resource.vscode-cdn.net/home/torkelloman/Desktop/Writing/Catalyst-Fast-Biochemical-Modeling-with-Julia/Benchmarks/GillesPy2/~/.local/lib/python3.10/site-packages/gillespy2/core/model.py:305), in Model._resolve_parameter(self, parameter)
304 try:
--> 305 parameter.validate()
307 # Calculate the parameters value.
File [~/.local/lib/python3.10/site-packages/gillespy2/core/parameter.py:124](https://file+.vscode-resource.vscode-cdn.net/home/torkelloman/Desktop/Writing/Catalyst-Fast-Biochemical-Modeling-with-Julia/Benchmarks/GillesPy2/~/.local/lib/python3.10/site-packages/gillespy2/core/parameter.py:124), in Parameter.validate(self, expression, coverage)
123 if not isinstance(expression, str):
--> 124 raise ParameterError("expression must be of type str, float, or int.")
125 if expression == "":
ParameterError: expression must be of type str, float, or int.
The above exception was the direct cause of the following exception:
ModelError Traceback (most recent call last)
File [~/.local/lib/python3.10/site-packages/gillespy2/core/model.py:1295](https://file+.vscode-resource.vscode-cdn.net/home/torkelloman/Desktop/Writing/Catalyst-Fast-Biochemical-Modeling-with-Julia/Benchmarks/GillesPy2/~/.local/lib/python3.10/site-packages/gillespy2/core/model.py:1295), in Model.run(self, solver, timeout, t, increment, algorithm, **solver_args)
1294 try:
-> 1295 return solver.run(t=t, increment=increment, timeout=timeout, **solver_args)
1296 except Exception as err:
File [~/.local/lib/python3.10/site-packages/gillespy2/solvers/numpy/ode_solver.py:160](https://file+.vscode-resource.vscode-cdn.net/home/torkelloman/Desktop/Writing/Catalyst-Fast-Biochemical-Modeling-with-Julia/Benchmarks/GillesPy2/~/.local/lib/python3.10/site-packages/gillespy2/solvers/numpy/ode_solver.py:160), in ODESolver.run(self, model, t, number_of_trajectories, increment, integrator, integrator_options, live_output, live_output_options, timeout, resume, **kwargs)
158 self.model = copy.deepcopy(model)
--> 160 self.model.compile_prep()
...
-> 1297 raise SimulationError(
1298 f"argument 'solver={solver}' to run() failed. Reason Given: {err}"
1299 ) from err
SimulationError: argument 'solver=' to run() failed. Reason Given: Could not add/resolve parameter: BT, Reason given: expression must be of type str, float, or int.
If I check the file, the problem seems to occur here:
where it cannot handle the <parameter id="BT" constant="true"/>
Is there a way around this, enabling me to load this model? I have been able to load this model using BioNetGen, so the file seems fine. Alternatively, I have the model in .bngl and .net form, if there's a way to load these into GillesPy2?
The text was updated successfully, but these errors were encountered:
Thank you for reporting this issue. This issue will be resolved in the v1.8.2 release. The easiest way to work around this issue is to place this block after your SBML import.
for name, param in model_BCR.listOfParameters.items():
param.expression = str(param.expression)
I am trying to load a SBML file using:
However, I get an error:
If I check the file, the problem seems to occur here:
where it cannot handle the
<parameter id="BT" constant="true"/>
Is there a way around this, enabling me to load this model? I have been able to load this model using BioNetGen, so the file seems fine. Alternatively, I have the model in .bngl and .net form, if there's a way to load these into GillesPy2?
The text was updated successfully, but these errors were encountered: