Skip to content

Releases: opencobra/cobrapy

0.31.1

26 Mar 09:28
fb51699

Choose a tag to compare

Release notes for cobrapy 0.31.0

New features

Fixes

  • fix the failed deployment of 0.31.0, my bad - CD

Other

Deprecated features

Backwards incompatible changes

0.30.0

14 Oct 12:55
04adfa6

Choose a tag to compare

Release notes for cobrapy 0.30.0

New features

Fixes

Fixes failures of GPR.copy() in Python 3.13.

Fix compartment not being stored for metabolites created during
reaction.build_reaction_from_string

Fix reaction.check_mass_balance giving incorrect results for reactions with floating point coefficients.

Fixes FastCC. This now implements the full algorithm as in the original paper and gives
the same results as the Matlab implementation (within the solver tolerance).

Other

Deprecated features

Backwards incompatible changes

Following libSBML we now also dropped support for Python 3.8. You can still use cobrapy
with Python 3.8 by installing version 0.29.1 or earlier.

0.29.1

19 Sep 12:46
3b599e1

Choose a tag to compare

Release notes for cobrapy 0.29.1

New features

Fixes

  • Fixes the incorrect bounds in the CycleFree loop removal.
  • Fixes reduced costs and shadow prices not available when using non-convex models.
  • Fixed a bug with SBML group parsing that affects the Debian package.
  • Fixed a bug where load_matlab_model would not work with numpy 2.0.

Other

  • Adding a duplicate boundary reaction (with add_boundary) no longer errors, but instead just returns the existing reaction.
  • Automatic detection of the external compartment now recognizes CARVEME and GAPSEQ ids and will no longer
    show a warning for models generated with those tools.

Deprecated features

Backwards incompatible changes

0.29.0

31 Oct 18:34

Choose a tag to compare

Release notes for cobrapy 0.29.0

New features

  • Added a new "hybrid" solver that exposes an HIGHS/OSQP combinations for large scale
    LPs, MILPs, and QPs.

Fixes

Repaired the broken Biomodels Web IO.

Other

Deprecated features

  • The OSQP solver is deprecated in favor of the hybrid solver which also uses OSQP but
    will not attempt to solve LPs with OSQP anymore. Setting the model.solver = "osqp"
    will now use the hybrid interface and will raise an error in a future release.

Backwards incompatible changes

0.28.0

25 Oct 23:07

Choose a tag to compare

Release notes for cobrapy 0.28.0

Fixes

  • Allowed for pandas versions >=1.0 and <3.0 (#1364).

Other

  • Updated the GitHub Actions used (#1364).

Backwards incompatible changes

  • Updated the package depinfo to version >2 (#1361).

0.27.0

15 Sep 18:45

Choose a tag to compare

Release notes for cobrapy 0.27.0

New features

Fixes

COBRApy is now compatible with pydantic version 2.

COBRApy is now compatible with the latest numpy versions and pin to a lower version
has been removed.

loopless_solution now fixes the objective to its optimum as in the
originally published method and returns the objective value in the solution object.

Repair a broken test for fix_objective_as_constraint.

Other

Backwards compatibility for pickled models has been improved.

Deprecated features

Backwards incompatible changes

0.26.3

12 Apr 21:25

Choose a tag to compare

Release notes for cobrapy 0.26.3

New features

Fixes

Fixed an issue where reaction bounds were being overwritten by global model min/max values
when writing sbml model to file. See #1300.

Fix an issue where runfrog does
not work via github actions or local installation by removing the use of obsolete numpy
aliases for float and bool.

Fix a bug where installing httpx>=0.24 would break cobrapy IO.

Other

Deprecated features

Backwards incompatible changes

0.26.2

03 Jan 20:32

Choose a tag to compare

Release notes for cobrapy 0.26.2

New features

Fixes

Fix the version numbers, my bad - cd

Other

Deprecated features

Backwards incompatible changes

0.26.1

02 Jan 22:38

Choose a tag to compare

Release notes for cobrapy 0.26.1

New features

Fixes

Fix automatic building of the documentation.

Fix an issue where SBML models with a "created" date would break lots of the cobrapy
functionality.

Temporary fix of restricting numpy to <1.24 as that release introduces breaking changes both in cobrapy and dependencies

Other

Deprecated features

Backwards incompatible changes

0.26.0

08 Nov 21:21

Choose a tag to compare

Release notes for cobrapy 0.26.0

New features

  • View number of genes in model notebook representation.
  • added support for Python 3.11

Fixes

  • serializes GPRs to strings to avoid massive storage usage
  • Reformatted example files (e_coli_core.xml, mini_cobra.xml, mini.json, mini.yml, textbook.xml.gz) to be more compliant with identifiers.org.
  • ncbigi is not a valid identifiers.org, so it was replaced with ncbiprotein.
  • make sbml.py subsystem reading add partonomy, which matches the definition
    of SBO:0000633 (see https://sourceforge.net/p/sbo/term-request/113/)
  • Correct reading and writing of subsystem in mat.
  • General cleanup of code in mat.py
  • fix the pandas deprecation warning in find_external_compartment
  • fix an issue where creating a Formula object would give a recursion error

Other

  • Resolve flake8 issues and add missing type annotations and docstrings in src/cobra/io and tests/test_io (#1212).
  • Updated model.py and test_model.py to Python 3.6+, including type annotations and docstrings.
  • Resolve remaining flake8 issues and enable the check in GitHub Actions Lint workflow (#1272).

Deprecated features

  • dropped support for Python 3.6

Backwards incompatible changes

  • Removed model.add_reaction() and replaced remaining usages of it with model.add_reactions()
  • Removed the following tests: test_add_remove_reaction_benchmark, test_add_reaction,
    test_add_reaction_context, test_add_reaction_from_other_model, test_add_cobra_reaction
  • Removed model.__add__ and model.__iadd__ - use model.merge to replace them.
  • Remove Model().description().
  • Remove Model().get_metabolite_compartments().