petab 0.9's petab1to2 drops a pre-equilibration whose condition changes nothing, and PyBNF then fits an experiment that starts from the initial conditions

Open Beginner friendly
#1,036 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
backend

Research direction

Start with tests/test_petab_convert_review.py::test_pre_equilibration_under_an_empty_condition_survives_conversion and the petab dependency declarations at pyproject.toml:61 and :123. Reproduce the conversion with petab below 0.10 and inspect how PyBNF handles a pre-equilibration whose condition changes nothing. Done means either the supported petab floor is 0.10 or conversion detects the dropped pre-equilibration and refuses to name the affected experiment.

Written by the indexing model from the issue text.

Description

bug silent-incorrectness

petab 0.9's petab1to2 drops a v1 pre-equilibration (preequilibrationConditionId) when that condition changes nothing. PyBNF then imports an experiment that starts from the model's initial conditions instead of from the pre-equilibrated steady state. The objective is wrong, and no error is raised. petab 0.10 keeps the pre-equilibration.

The petab extra still allows petab 0.9 (pyproject.toml:61 and :123, petab>=0.9,<1).

Where it is recorded. A strict xfail on petab < 0.10: tests/test_petab_convert_review.py::test_pre_equilibration_under_an_empty_condition_survives_conversion. It was found in independent review of #1017.

Fix, either of:

  • raise the extra's floor to petab 0.10;
  • detect after conversion that a pre-equilibration period was dropped, and refuse naming the experiment.
Dominant language
Python
Stars
25
Forks
25
Avg merge
4h 5m
Merged PRs (30d)
10

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lanl/PyBNF

All issues in lanl/PyBNF

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.