Skip to content

Commit

Permalink
add to_pandas to EnzymeMLDocument
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Aug 20, 2024
1 parent a57a732 commit 6330f0c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dev-examples/sbml_import_odes.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
)

rich.print(to_dict_wo_json_ld(doc))

df = doc.to_pandas(doc)

rich.print(df)
4 changes: 4 additions & 0 deletions dev-examples/sbml_import_reactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
)

rich.print(to_dict_wo_json_ld(doc))

df = doc.to_pandas(doc)

rich.print(df)
1 change: 1 addition & 0 deletions pyenzyme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def write_enzymeml(
EnzymeMLDocument.write = write_enzymeml # noqa: F405
EnzymeMLDocument.from_sbml = classmethod(read_sbml) # noqa: F405
EnzymeMLDocument.to_sbml = to_sbml # noqa: F405
EnzymeMLDocument.to_pandas = to_pandas # noqa: F405


def sort_by_ld(d: dict) -> dict:
Expand Down

0 comments on commit 6330f0c

Please sign in to comment.