Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Dec 5, 2024
1 parent 33cb1b1 commit 195f534
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion petab/v1/models/sbml_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def from_file(filepath_or_buffer, model_id: str = None):
sbml_document=sbml_document,
model_id=model_id,
)

@staticmethod
def from_string(sbml_string, model_id: str = None):
sbml_reader, sbml_document, sbml_model = load_sbml_from_string(
Expand Down
5 changes: 3 additions & 2 deletions petab/v1/sbml.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ def is_sbml_consistent(
has_issues = sbml_document.checkConsistency()

# we only have an issue with errors or fatals
has_problems = sbml_document.getNumErrors(libsbml.LIBSBML_SEV_ERROR) + \
sbml_document.getNumErrors(libsbml.LIBSBML_SEV_FATAL)
has_problems = sbml_document.getNumErrors(
libsbml.LIBSBML_SEV_ERROR
) + sbml_document.getNumErrors(libsbml.LIBSBML_SEV_FATAL)
if has_issues:
log_sbml_errors(sbml_document)
if has_problems:
Expand Down

0 comments on commit 195f534

Please sign in to comment.