Skip to content

Commit c37cde4

Browse files
author
Christopher Henry
committed
Adding defaults for new fields pigment and carbohydrate
1 parent d04990a commit c37cde4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modelseedpy/core/mstemplate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,8 +648,8 @@ def from_dict(d, template):
648648
d["lipid"],
649649
d["cellwall"],
650650
d["cofactor"],
651-
d["pigment"],
652-
d["carbohydrate"],
651+
d.get("pigment",0),
652+
d.get("carbohydrate",0),
653653
d["energy"],
654654
d["other"],
655655
)

0 commit comments

Comments
 (0)