Skip to content

Commit

Permalink
supporting new units in SABIO-RK
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrkarr committed Nov 15, 2018
1 parent bc3f231 commit d4a7546
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions datanator/data_source/sabio_rk.py
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,8 @@ def normalize_parameter_value(self, name, type, value, error, units, enzyme_mole
# off by liter^(-1)
return (None, None, None, None, None)

if units in ['mg/ml', 'M^2', 'mol/mol', 'katal*g^(-1)', 's^(-1)', 'mol*s^(-1)*g^(-1)', 'l*g^(-1)*s^(-1)']:
if units in ['mg/ml', 'M^2', 'mol/mol', 'katal*g^(-1)', 's^(-1)', 'mol*s^(-1)*g^(-1)',
'l*g^(-1)*s^(-1)', 'M^(-1)*s^(-1)', 'M^(-1)']:
return (None, None, None, None, None)

if units is None:
Expand Down Expand Up @@ -1228,7 +1229,8 @@ def normalize_parameter_value(self, name, type, value, error, units, enzyme_mole
return (None, None, None, None, None)

if units in ['mol*s^(-1)*m^(-1)', 'M', 'g', 'g/(l*s)', 'M^2', 'katal*s^(-1)', 'mol*g^(-1)', 'mol/(sec*m^2)', 'mg/ml',
'l*g^(-1)*s^(-1)', 'mol/(s*M)', 'katal*M^(-1)*g^(-1)', 'M^(-1)*s^(-1)']:
'l*g^(-1)*s^(-1)', 'mol/(s*M)', 'katal*M^(-1)*g^(-1)', 'M^(-1)*s^(-1)', 'mol*s^',
's^(-1)*g^(-1)']:
return (None, None, None, None, None)

if units is None:
Expand Down

0 comments on commit d4a7546

Please sign in to comment.