Skip to content

Non-mmcs sampling fails #117

@hariszaf

Description

@hariszaf

I noticed that when using generate_steady_states_no_multiphase() with any method except mmcs, you would get a zero-array of shape equal to the expected one - that's why the tests do not fail.

(base) u0156635@gbw-l-l0074:ext_data$ python 
Python 3.9.5 | packaged by conda-forge | (default, Jun 19 2021, 00:32:32) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import dingo
>>> model = dingo.MetabolicNetwork.from_sbml("e_coli_core.xml")
>>> sampler = dingo.PolytopeSampler(model)
>>> samples = sampler.generate_steady_states_no_multiphase()
>>> samples
array([[0., 0., 0., ..., 0., 0., 0.],
       [0., 0., 0., ..., 0., 0., 0.],
       [0., 0., 0., ..., 0., 0., 0.],
       ...,
       [0., 0., 0., ..., 0., 0., 0.],
       [0., 0., 0., ..., 0., 0., 0.],
       [0., 0., 0., ..., 0., 0., 0.]])
  • OS: Ubuntu 24

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions