Comments (5)
This requires fixing some additional issues in #2063, #2064. Won't be able to do that during the next week, but will try to look into that thereafter.
from amici.
This is perfect. Just tested and works. Can be closed from my side. Thanks a lot.
from amici.
Basically you just have to do the following on the SBMLDocument:
props = libsbml.ConversionProperties()
props.addOption("flatten comp", True) # Invokes CompFlatteningConverter
props.addOption("leave_ports", False) # Indicates whether to leave ports
props.addOption("abortIfUnflattenable", "none")
# flatten
result = doc.convert(props)
flattened_status = result == libsbml.LIBSBML_OPERATION_SUCCESS
from amici.
Thanks, will add it.
from amici.
That should work now on branch develop
. For fbc
, only extra attributes to core elements are supported, but no additional fbc elements.
from amici.
Related Issues (20)
- `Benchmark Collection` workflow fails for Lang_PLOSComputBiol2024 HOT 2
- cmake: replace explicit checks for CMAKE_BUILD_TYPE
- TimeCourse Implementation
- Piecewise function HOT 1
- PEtab import: Estimated initial conditions specified via the conditions table aren't handled correctly
- Remove deprecated functionality for PEtab import from individual files instead of petab.Problem
- Replace deprecated `petab.Problem.from_files` in `amici.petab.cli.import_petab._main`
- Handle reserved names in PEtab parameter mapping HOT 3
- 'reduce' is not a member of 'std' std::reduce(idlist.begin(), idlist.end()) HOT 2
- CMake Error during AMICI installation on WSL HOT 4
- Illegal value in CVodeGetDky
- Survey: MATLAB users / continuation of AMICI's MATLAB interface
- Set CMP0167 for CMake 3.30
- GHA: -Werror only for amici repo
- Uncaught C exceptions HOT 7
- Wrong conservation laws for pysb models
- Segmentation fault when importing amici on Mac HOT 9
- Add tests for installing amici under conda
- Test amici with no-GIL Python
- Assertion error in ForwardProblem::getSimulationStateTimepoint
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amici.