Skip to content

Commit

Permalink
Removed tests for rate laws for now
Browse files Browse the repository at this point in the history
  • Loading branch information
bilalshaikh42 committed Aug 2, 2018
1 parent 5a197ca commit d8462fd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
18 changes: 9 additions & 9 deletions tests/prokaryote/test_rna_degradation.py
Expand Up @@ -94,12 +94,12 @@ def test(self):
+ submodel.reactions[0].participants.get_one(species=h).coefficient,
rnas[0].get_len() - 1)

""" # check rate laws
deg_rnase = model.observables.get_one(id='deg_rnase_obs')
deg_avg_conc = 5000/scipy.constants.Avogadro / cytosol.initial_volume
for rna, rxn in zip(rnas, submodel.reactions):
self.assertEqual(len(rxn.rate_laws), 1)
rl = rxn.rate_laws[0]
self.assertEqual(rl.direction.name, 'forward')
self.assertEqual(rl.k_m, deg_avg_conc)
self.assertEqual(rl.k_cat, 2 * numpy.log(2) / rna.half_life)"""
""" # check rate laws
deg_rnase = model.observables.get_one(id='deg_rnase_obs')
deg_avg_conc = 5000/scipy.constants.Avogadro / cytosol.initial_volume
for rna, rxn in zip(rnas, submodel.reactions):
self.assertEqual(len(rxn.rate_laws), 1)
rl = rxn.rate_laws[0]
self.assertEqual(rl.direction.name, 'forward')
self.assertEqual(rl.k_m, deg_avg_conc)
self.assertEqual(rl.k_cat, 2 * numpy.log(2) / rna.half_life)"""
2 changes: 1 addition & 1 deletion tests/prokaryote/test_transcription.py
Expand Up @@ -99,7 +99,7 @@ def test(self):
+ submodel.reactions[0].participants.get_one(species=h).coefficient,
-(rnas[0].get_len() - 1))

""" rna_poly = model.observables.get_one(
""" rna_poly = model.observables.get_one(
id='rna_poly_obs')
# http://bionumbers.hms.harvard.edu/bionumber.aspx?s=n&v=2&id=106199
poly_avg_conc = 3000/scipy.constants.Avogadro / cytosol.initial_volume
Expand Down
4 changes: 3 additions & 1 deletion tests/prokaryote/test_translation.py
Expand Up @@ -110,7 +110,9 @@ def test(self):
if participant.species.species_type.id == prot.id+'_att':
self.assertEqual(participant.coefficient, -1)

""" # check rate laws
"""
# check rate laws
for rxn in submodel.reactions:
self.assertEqual(len(rxn.rate_laws), 1)
rl = rxn.rate_laws[0]
Expand Down

0 comments on commit d8462fd

Please sign in to comment.