pymodrev 0.5.7__tar.gz → 0.5.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pymodrev-0.5.7/src/pymodrev.egg-info → pymodrev-0.5.8}/PKG-INFO +1 -1
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/api.py +31 -16
- {pymodrev-0.5.7 → pymodrev-0.5.8/src/pymodrev.egg-info}/PKG-INFO +1 -1
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev.egg-info/scm_version.json +2 -2
- {pymodrev-0.5.7 → pymodrev-0.5.8}/tests/test_api.py +32 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/.github/workflows/python-publish.yml +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/.gitignore +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/CHANGELOG.md +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/README.md +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/00/README +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/00/model.bnet +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/00/model.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/00/model.zginml +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/00/output.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/00/steady.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/00/steady.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/01/README +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/01/model.bnet +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/01/model.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/01/model.zginml +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/01/output.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/01/steady.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/01/steady.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/02/README +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/02/model.bnet +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/02/model.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/02/model.zginml +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/02/output.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/02/steady.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/02/steady.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/03/README +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/03/model.bnet +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/03/model.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/03/model.zginml +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/03/output.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/03/steady.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/03/steady.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/04/README +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/04/async.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/04/async.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/04/model.bnet +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/04/model.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/04/model.zginml +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/04/output.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/05/README +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/05/async.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/05/async.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/05/model.bnet +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/05/model.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/05/model.zginml +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/05/output.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/06/README +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/06/async.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/06/async.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/06/model.bnet +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/06/model.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/06/model.zginml +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/06/output.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/07/README +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/07/async.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/07/async.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/07/model.bnet +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/07/model.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/07/model.zginml +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/07/output.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/08/README +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/08/model.bnet +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/08/model.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/08/model.zginml +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/08/output.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/08/sync.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/08/sync.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/09/README +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/09/model.bnet +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/09/model.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/09/model.zginml +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/09/output.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/09/sync.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/09/sync.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/10/README +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/10/async.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/10/async.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/10/model.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/10/output.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/10/sync.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/10/sync.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/11/README +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/11/model.bnet +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/11/model.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/11/model.zginml +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/11/notsteady.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/11/output.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/12/README +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/12/model.bnet +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/12/model.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/12/model.zginml +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/12/notsteady.lpdev +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/boolean_cell_cycle/12/output.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/00/README +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/00/model.bnet +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/00/model.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/00/model.zginml +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/00/output.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/00/steady.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/00/steady.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/01/README +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/01/async.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/01/async.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/01/model.bnet +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/01/model.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/01/model.zginml +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/01/output.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/02/async.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/02/async.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/02/model.bnet +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/02/model.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/02/model.zginml +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/02/output.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/02/steady.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/02/steady.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/README +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/model.bnet +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/model.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/model.zginml +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/output.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/steady_01.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/steady_01.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/steady_02.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/steady_02.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/steady_03.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/steady_03.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/steady_04.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/steady_04.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/steady_05.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/steady_05.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/steady_06.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/steady_06.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/steady_07.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/steady_07.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/steady_08.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/steady_08.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/steady_09.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/steady_09.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/steady_10.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/steady_10.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/steady_11.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/steady_11.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/steady_12.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/03/steady_12.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/04/README +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/04/model.bnet +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/04/model.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/04/notsteady.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/04/notsteady.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/fissionYeastDavidich2008/04/output.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/toy/00/README +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/toy/00/model.bnet +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/toy/00/model.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/toy/00/output.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/toy/00/sync.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/toy/00/sync.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/toy/01/README +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/toy/01/model.bnet +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/toy/01/model.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/toy/01/output.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/toy/01/reachasync_01.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/toy/01/reachasync_02.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/toy/02/README +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/toy/02/model.bnet +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/toy/02/model.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/toy/02/output.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/toy/02/reachsync_01.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/examples/toy/02/reachsync_02.csv +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/pyproject.toml +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/requirements.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/setup.cfg +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/__init__.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/__main__.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/asp_rules/async.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/asp_rules/base.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/asp_rules/complete.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/asp_rules/notsteady_state.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/asp_rules/reach.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/asp_rules/steady.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/asp_rules/sync.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/asp_rules/time_series.lp +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/cli.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/configuration.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/network/__init__.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/network/edge.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/network/exceptions.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/network/function.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/network/inconsistency_solution.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/network/inconsistent_node.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/network/model.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/network/node.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/network/observation.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/network/observation_set.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/network/repair_set.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/parsers/__init__.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/parsers/asp_utils.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/parsers/boolean_expression.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/parsers/network_parser.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/parsers/parser_asp.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/parsers/parser_bnet.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/parsers/parser_factory.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/parsers/parser_ginml.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/parsers/parser_observation.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/repair/__init__.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/repair/consistency.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/repair/engine.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/repair/function_search.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/repair/repair.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/repair/topology.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/updaters/__init__.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/updaters/async_updater.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/updaters/complete_updater.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/updaters/factory.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/updaters/notsteady_updater.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/updaters/reachasync_updater.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/updaters/reachsync_updater.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/updaters/steady_updater.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/updaters/sync_updater.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/updaters/time_series_updater.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev/updaters/updater.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev.egg-info/SOURCES.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev.egg-info/dependency_links.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev.egg-info/entry_points.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev.egg-info/requires.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev.egg-info/scm_file_list.json +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/src/pymodrev.egg-info/top_level.txt +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/tests/compare_outputs.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/tests/conftest.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/tests/test_apply_repair.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/tests/test_bnet_parser.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/tests/test_edge.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/tests/test_function.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/tests/test_inconsistency_solution.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/tests/test_inconsistent_node.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/tests/test_model.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/tests/test_model_files.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/tests/test_node.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/tests/test_observation_parsers.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/tests/test_observation_set.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/tests/test_repair_set.py +0 -0
- {pymodrev-0.5.7 → pymodrev-0.5.8}/tests/test_updater_factory.py +0 -0
|
@@ -199,29 +199,44 @@ def is_consistent(model: Model, observation_names: List[str] | str,
|
|
|
199
199
|
return json.loads(consistency_to_str(inconsistencies, optimization))
|
|
200
200
|
|
|
201
201
|
|
|
202
|
-
def repair(
|
|
203
|
-
|
|
204
|
-
|
|
202
|
+
def repair(
|
|
203
|
+
model: Model,
|
|
204
|
+
obs_names: List[str] | str | None = None,
|
|
205
|
+
use_consistency: bool = False,
|
|
206
|
+
) -> Tuple[List[Model], dict]:
|
|
207
|
+
"""Compute and apply repair solutions for a model.
|
|
208
|
+
|
|
209
|
+
By default this method recomputes consistency for the provided model
|
|
210
|
+
before searching for repairs. If ``use_consistency`` is True, it reuses the
|
|
211
|
+
cached inconsistency result from the previous ``is_consistent`` call.
|
|
212
|
+
"""
|
|
205
213
|
global _LAST_USED_OBSERVATION_NAMES, _LAST_INCONSISTENCIES, _LAST_OPTIMIZATION
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
raise ValueError("is_consistent() method must be run before")
|
|
209
|
-
if _LAST_OPTIMIZATION == 0:
|
|
210
|
-
return [], {}
|
|
211
|
-
observation_set = _subset_observations(_LAST_USED_OBSERVATION_NAMES)
|
|
212
|
-
else: # user called repair() directly with explicit observation names
|
|
214
|
+
|
|
215
|
+
if obs_names is not None:
|
|
213
216
|
if isinstance(obs_names, str):
|
|
214
217
|
obs_names = [obs_names]
|
|
215
218
|
_LAST_USED_OBSERVATION_NAMES = obs_names
|
|
216
|
-
|
|
219
|
+
elif not _LAST_USED_OBSERVATION_NAMES:
|
|
220
|
+
raise ValueError("is_consistent() method must be run before")
|
|
221
|
+
|
|
222
|
+
observation_set = _subset_observations(_LAST_USED_OBSERVATION_NAMES)
|
|
223
|
+
|
|
224
|
+
if use_consistency:
|
|
225
|
+
if _LAST_INCONSISTENCIES is None or _LAST_OPTIMIZATION is None:
|
|
226
|
+
raise ValueError("No previous consistency result available; run is_consistent() first")
|
|
227
|
+
else:
|
|
217
228
|
_LAST_INCONSISTENCIES, _LAST_OPTIMIZATION = check_consistency(model, observation_set)
|
|
218
|
-
|
|
219
|
-
|
|
229
|
+
|
|
230
|
+
if _LAST_OPTIMIZATION == 0:
|
|
231
|
+
return [], {}
|
|
232
|
+
|
|
233
|
+
# model_revision mutates inconsistency objects while building repair sets.
|
|
234
|
+
# Keep cached results immutable across repeated repair() calls.
|
|
235
|
+
inconsistencies_for_repair = copy.deepcopy(_LAST_INCONSISTENCIES)
|
|
220
236
|
|
|
221
237
|
config.task = 'r'
|
|
222
238
|
config.format = 'j'
|
|
223
|
-
repairs, s = model_revision(model, observation_set,
|
|
224
|
-
|
|
239
|
+
repairs, s = model_revision(model, observation_set, inconsistencies_for_repair, _LAST_OPTIMIZATION)
|
|
225
240
|
|
|
226
241
|
repaired_models: list[Model] = []
|
|
227
242
|
for repair_solution in repairs:
|
|
@@ -240,7 +255,7 @@ def repair(model: Model, obs_names: List[str] | str | None = None) -> Tuple[List
|
|
|
240
255
|
_apply_repair_in_place(repaired_model, repair_solution, node_repair_map)
|
|
241
256
|
repaired_models.append(repaired_model)
|
|
242
257
|
|
|
243
|
-
return repaired_models, json.loads(s)
|
|
258
|
+
return repaired_models, json.loads(s) if s else {}
|
|
244
259
|
|
|
245
260
|
|
|
246
261
|
def model_to_file(model: Model, filepath: os.PathLike[str] | str) -> None:
|
|
@@ -150,3 +150,35 @@ def test_repair_returns_repaired_model_variants():
|
|
|
150
150
|
assert len(repaired_models) >= 1
|
|
151
151
|
assert all(repaired is not model for repaired in repaired_models)
|
|
152
152
|
assert isinstance(details, dict)
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
def test_repair_recomputes_by_default_for_current_model():
|
|
156
|
+
mrev.clear_obs()
|
|
157
|
+
mrev.obs_steady("obs1", {"A": 1})
|
|
158
|
+
|
|
159
|
+
model_good = mrev.model_from_dict({"A": "A"})
|
|
160
|
+
model_bad = mrev.model_from_dict({"A": 0})
|
|
161
|
+
|
|
162
|
+
# Populate cache with a consistent result for a different model.
|
|
163
|
+
res = mrev.is_consistent(model_good, ["obs1"])
|
|
164
|
+
assert res.get("consistent") is True
|
|
165
|
+
|
|
166
|
+
# Default behavior must recompute consistency for model_bad and therefore
|
|
167
|
+
# match an explicit fresh call on the same observations.
|
|
168
|
+
repaired_models_default, details_default = mrev.repair(model_bad)
|
|
169
|
+
repaired_models_explicit, details_explicit = mrev.repair(model_bad, ["obs1"])
|
|
170
|
+
|
|
171
|
+
assert len(repaired_models_default) == len(repaired_models_explicit)
|
|
172
|
+
assert details_default == details_explicit
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
def test_repair_repeated_calls_do_not_accumulate_state():
|
|
176
|
+
mrev.clear_obs()
|
|
177
|
+
mrev.obs_notsteady("obs1", {"A": 0})
|
|
178
|
+
model = mrev.model_from_dict({"A": "A"})
|
|
179
|
+
|
|
180
|
+
repaired_models_1, details_1 = mrev.repair(model, ["obs1"])
|
|
181
|
+
repaired_models_2, details_2 = mrev.repair(model, ["obs1"])
|
|
182
|
+
|
|
183
|
+
assert len(repaired_models_1) == len(repaired_models_2)
|
|
184
|
+
assert details_1 == details_2
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|