From 8b2efa719881269181f534023c5915ad10dfba84 Mon Sep 17 00:00:00 2001 From: "uri.akavia" Date: Mon, 30 May 2022 09:37:40 -0400 Subject: [PATCH 1/9] UserConstraints defined and tests work --- .idea/cobrapy.iml | 16 +- .idea/inspectionProfiles/Project_Default.xml | 55 ++ .../inspectionProfiles/profiles_settings.xml | 6 + .idea/misc.xml | 4 + .idea/modules.xml | 8 + src/cobra/core/__init__.py | 1 + src/cobra/core/model.py | 130 +++++ src/cobra/core/udconstraints.py | 540 ++++++++++++++++++ src/cobra/io/dict.py | 81 ++- tests/data/userConstraint.xml | 126 ++++ tests/test_core/test_udconstraints.py | 216 +++++++ 11 files changed, 1169 insertions(+), 14 deletions(-) create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/modules.xml create mode 100644 src/cobra/core/udconstraints.py create mode 100644 tests/data/userConstraint.xml create mode 100644 tests/test_core/test_udconstraints.py diff --git a/.idea/cobrapy.iml b/.idea/cobrapy.iml index e246f868c..f175003e1 100644 --- a/.idea/cobrapy.iml +++ b/.idea/cobrapy.iml @@ -3,23 +3,13 @@ - - - - - - - - + - - -