Skip to content

Commit

Permalink
- silence misleading error message
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Nov 19, 2024
1 parent 33fb45c commit f005bbe
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions basico/task_steadystate.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def run_steadystate(**kwargs):
logger.error("Error while initializing the simulation: " +
model_info.get_copasi_messages(num_messages_before, 'No output'))
else:
num_messages_before = COPASI.CCopasiMessage.size()
task.setCallBack(get_default_handler())
result = task.processRaw(use_initial_values)

Expand Down
12 changes: 12 additions & 0 deletions tests/test_mca.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ def test_run(self):
flux_control_coefficients = basico.get_flux_control_coefficients()
self.assertIsNotNone(flux_control_coefficients)

class TestMCAYeast(unittest.TestCase):
def setUp(self):
basico.load_example('YeastGly')
self.assertIsNotNone(basico.get_species('ATP', exact=True))

def test_steadystate(self):
result = basico.run_steadystate()
self.assertTrue(result)
species = basico.get_species()
self.assertIsNotNone(species)




if __name__ == '__main__':
Expand Down

0 comments on commit f005bbe

Please sign in to comment.