-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
438 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
|
||
class ConfigReactionsSets: | ||
|
||
def __init__(self): | ||
self.__objective = None | ||
self.__fraction_of_optimum = None | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
from enum import Enum | ||
|
||
|
||
class MediumEnum(Enum): | ||
DEFAULT = 1 | ||
COMPLETE = 2 | ||
COMPLETE = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
from enum import Enum | ||
|
||
|
||
class OptimizationEnum(Enum): | ||
FBA = 1 | ||
pFBA = 2 | ||
pFBA = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
from wtforms import Form, StringField, DecimalField, validators | ||
|
||
|
||
class TaskFormCriticalReactions(Form): | ||
objective = StringField('objective', | ||
[validators.optional(), validators.Length(min=1, max=256)]) | ||
fraction_of_optimum = DecimalField('fraction_of_optimum', | ||
[validators.optional(), | ||
validators.NumberRange(min=0.0, max=1.0, message='Fraction of optimum must be in the range [0, 1]')]) | ||
objective = StringField( | ||
"objective", [validators.optional(), validators.Length(min=1, max=256)] | ||
) | ||
fraction_of_optimum = DecimalField( | ||
"fraction_of_optimum", | ||
[ | ||
validators.optional(), | ||
validators.NumberRange( | ||
min=0.0, | ||
max=1.0, | ||
message="Fraction of optimum must be in the range [0, 1]", | ||
), | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,40 @@ | ||
from wtforms import Form, StringField, DecimalField, SelectField, BooleanField, validators | ||
from wtforms import ( | ||
Form, | ||
StringField, | ||
DecimalField, | ||
SelectField, | ||
BooleanField, | ||
validators, | ||
) | ||
from .OptimizationEnum import * | ||
from .MediumEnum import * | ||
|
||
|
||
class TaskFormReactionsSets(Form): | ||
objective = StringField('objective', | ||
[validators.optional(), validators.Length(min=1, max=256)]) | ||
fraction_of_optimum = DecimalField('fraction_of_optimum', | ||
[validators.optional(), | ||
validators.NumberRange(min=0.0, max=1.0, message='Fraction of optimum must be in the range [0, 1]')]) | ||
medium = SelectField(u'Growth medium', | ||
[validators.optional()], | ||
choices=[name for name, member in MediumEnum.__members__.items()]) | ||
optimization = SelectField(u'Growth Optimization', | ||
[validators.optional()], | ||
choices=[name for name, member in OptimizationEnum.__members__.items()]) | ||
skip_knockout = BooleanField(u'Skip knock-out computation', | ||
[validators.optional()], | ||
default=True) | ||
objective = StringField( | ||
"objective", [validators.optional(), validators.Length(min=1, max=256)] | ||
) | ||
fraction_of_optimum = DecimalField( | ||
"fraction_of_optimum", | ||
[ | ||
validators.optional(), | ||
validators.NumberRange( | ||
min=0.0, | ||
max=1.0, | ||
message="Fraction of optimum must be in the range [0, 1]", | ||
), | ||
], | ||
) | ||
medium = SelectField( | ||
u"Growth medium", | ||
[validators.optional()], | ||
choices=[name for name, member in MediumEnum.__members__.items()], | ||
) | ||
optimization = SelectField( | ||
u"Growth Optimization", | ||
[validators.optional()], | ||
choices=[name for name, member in OptimizationEnum.__members__.items()], | ||
) | ||
skip_knockout = BooleanField( | ||
u"Skip knock-out computation", [validators.optional()], default=True | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.