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

PySB import: Change default simplify to work with multiprocessing #1961

Merged
merged 2 commits into from
Jan 27, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions python/sdist/amici/pysb_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
noise_distribution_to_observable_transformation)
from .logging import get_logger, log_execution_time, set_log_level
from .ode_export import (Constant, Expression, LogLikelihoodY, ODEExporter,
ODEModel, Observable, Parameter, SigmaY, State)
ODEModel, Observable, Parameter, SigmaY, State,
_default_simplify)

CL_Prototype = Dict[str, Dict[str, Any]]
ConservationLaw = Dict[str, Union[Dict, str, sp.Basic]]
Expand All @@ -46,7 +47,7 @@ def pysb2amici(
compiler: str = None,
compute_conservation_laws: bool = True,
compile: bool = True,
simplify: Callable = lambda x: sp.powsimp(x, deep=True),
simplify: Callable = _default_simplify,
# Do not enable by default without testing.
# See https://github.com/AMICI-dev/AMICI/pull/1672
cache_simplify: bool = False,
Expand Down