File tree Expand file tree Collapse file tree 4 files changed +1464
-2
lines changed Expand file tree Collapse file tree 4 files changed +1464
-2
lines changed Original file line number Diff line number Diff line change 6
6
7
7
Fix automatic building of the documentation.
8
8
9
+ Fix an issue where SBML models with a "created" date would break lots of the cobrapy
10
+ functionality.
11
+
9
12
## Other
10
13
11
14
## Deprecated features
Original file line number Diff line number Diff line change @@ -606,7 +606,7 @@ def _sbml_to_model(
606
606
history : "libsbml.ModelHistory" = model .getModelHistory ()
607
607
608
608
if history .isSetCreatedDate ():
609
- created = history .getCreatedDate ()
609
+ created = history .getCreatedDate (). getDateAsString ()
610
610
611
611
c : "libsbml.ModelCreator"
612
612
for c in history .getListCreators ():
@@ -1237,7 +1237,7 @@ def _model_to_sbml(
1237
1237
1238
1238
history : "libsbml.ModelHistory" = libsbml .ModelHistory ()
1239
1239
if "created" in meta and meta ["created" ]:
1240
- history .setCreatedDate (meta ["created" ])
1240
+ history .setCreatedDate (libsbml . Date ( meta ["created" ]) )
1241
1241
else :
1242
1242
time = datetime .datetime .now ()
1243
1243
timestr = time .strftime ("%Y-%m-%dT%H:%M:%S" )
You can’t perform that action at this time.
0 commit comments