Skip to content

Commit

Permalink
Update util.py
Browse files Browse the repository at this point in the history
  • Loading branch information
longxf21 committed Jun 10, 2024
1 parent 3bd6d12 commit 8255ac5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ratesb_python/common/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ def get_json_str(json_reference):
else:
raise ValueError("Invalid rate law file path.")
return json_str

def checkSBMLDocument(document):
if (document.getNumErrors() > 0):
print("SBML Document Error")

def check_equal(expr1, expr2, n=4, sample_min=1, sample_max=10):
"""check if two sympy expressions are equal by plugging random numbers
Expand Down

0 comments on commit 8255ac5

Please sign in to comment.