Conversation
FFroehlich
left a comment
There was a problem hiding this comment.
Is there an appropriate test case in the petab testsuite?
I don't think thats a big issue, feel free to make this a public method. I generally make all functions private by default as this slims the API and makes it easier to navigate. |
Codecov Report
@@ Coverage Diff @@
## develop #1397 +/- ##
===========================================
+ Coverage 78.71% 79.16% +0.44%
===========================================
Files 63 63
Lines 10004 10626 +622
===========================================
+ Hits 7875 8412 +537
- Misses 2129 2214 +85
Flags with carried forward coverage won't be shown. Click here to find out more.
|
The PEtab example I provided in the issue? Sure. Although I think an even easier model could be used with the same characteristics as in that one. What do you think is more appropriate? |
|
I think there is still an open issue in this PR: For debugging: In the example I provided in #1396 one can see this unwanted behavior happening. The condition 447796069.1255652 2.0 For the conditions left empty (in this case
|
Right. The handling of species in the condition table needs a makeover. There is meanwhile a better test case in the petab test suite and I started fixing stuff (#1344). The problem is, that #1345 needs to be addressed first to fully support those PEtab cases there. This is still some work. But we should at least raise some exception in case things are not fully supported. |
|
SonarCloud Quality Gate failed. |
|
Merging as is, even if it does not fully resolve @elbaraim 's issue. The rest will take a bit more time. |
….13) Breaking changes: * AMICI requires Python>=3.7 * Updated package installation (PEP517/518): Creating source distributions requires https://github.com/pypa/build (#1384) (but now handles all package building dependencies properly) Features: * More flexible state reinitialization (#1417) Updated dependencies: * Upgrade to sundials 5.7.0 (#1392) Fixes: * Python: account for heaviside functions in expressions (#1382) * Python: allow loading of existing models in import_petab_problem (#1383) * Python: Don't override user-provided compiler/linker flags (#1389) * Python: PEtab import reinitialization fixes (#1417) * Python: Fix PEtab observables for pysb models (#1390) * Python: Substitute expressions in event condition expressions (#1404) * Python: Unspecified initial states in PEtab conditions table default to SBML initial value (#1397) * C++: Fix timepoint out of bounds access (#1402) * C++: Fix exported CMake config (#1388) * Fixed Dockerfile: add python3-venv (#1398, #1408) Other: * Slim exported swig interface (#1425) * Updated documentation * Getting started tutorial (#1423) * List supported SBML test tags (#1428) * Add AMICI C++/Python/Matlab feature comparison (#1409) * ... * Various minor CI improvements * ...
#1396
The warning added to "petab_import.py" is untested, just seems reasonable to me.
The warning added to "petab_objective.py" can result in many warnings, by default.
float()is used inpetab_objective.pysince any SBML initial assignment (for states in the PEtab conditions table) would have been overwritten in "petab_import.py" anyway, so I guess those overwritten SBML initial assignments should be ignored everywhere, hence only float-type values (initial amounts or concentrations) would be expected.Not a nice solution I guess, since a private method from "sbml_import.py" is used.