Skip to content

Commit

Permalink
Correct the units for dfba_obj_species
Browse files Browse the repository at this point in the history
  • Loading branch information
YinHoon committed Sep 8, 2020
1 parent 97c8ee0 commit 1c2fb7b
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 2 deletions.
Binary file modified tests/fixtures/example-model.xlsx
Binary file not shown.
Binary file modified tests/fixtures/sbml-io-transformed.xlsx
Binary file not shown.
Binary file modified tests/fixtures/sbml-io.xlsx
Binary file not shown.
Binary file modified tests/fixtures/test_model.xlsx
Binary file not shown.
Binary file modified tests/fixtures/test_validate_model.xlsx
Binary file not shown.
5 changes: 3 additions & 2 deletions wc_lang/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -4275,8 +4275,9 @@ class DfbaObjSpecies(obj_tables.Model, SbmlModelMixin):
verbose_related_name='dFBA objective species')
value = FloatAttribute()
units = UnitAttribute(unit_registry,
choices=(unit_registry.parse_units('M s^-1'), unit_registry.parse_units('mol gDCW^-1 s^-1')),
default=unit_registry.parse_units('M s^-1'))
choices=(unit_registry.parse_units('molecule gDCW^-1'), unit_registry.parse_units('mol gDCW^-1'),
unit_registry.parse_units('molecule cell^-1')),
default=unit_registry.parse_units('mol gDCW^-1'))
identifiers = IdentifierManyToManyAttribute(related_name='dfba_obj_species',
verbose_related_name='dFBA objective species')
evidence = EvidenceManyToManyAttribute('Evidence', related_name='dfba_obj_species')
Expand Down

0 comments on commit 1c2fb7b

Please sign in to comment.