Skip to content

Commit

Permalink
compartment to json fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Fxe committed Nov 13, 2024
1 parent 583a87f commit 63f0aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cobrakbase/core/kbasefba/fbamodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def _to_json(self):
data = {}
ignore = {"modelcompounds", "modelreactions", "biomasses", "modelcompartments"}

data["modelcompartments"] = converter.build_model_compartments()
data["modelcompartments"] = list(converter.build_model_compartments().values())

for key in self.data_keys:
if key not in ignore:
Expand Down

0 comments on commit 63f0aa3

Please sign in to comment.