You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have around 30 JSON files I try to convert from OEP-1.3 to OEP-1.4.
Around ten files are failing, because they have in temporal.reference_date a none valid input (string: "none" instead of a datestring) and produce an error ("Unknown string format:", timestr).
Yes, this is part of a larget issue, namely me not beeing aware of the fact that we do not have mandatory fields. I am working on it in features/everything_is_optional
Was this issue addressed in #13 ? I tried to parse a sample OEP-1.3 file after the merge and for testing purposes changed the date to "none". I got the following (same?) Error:
Hi all,
I have around 30 JSON files I try to convert from OEP-1.3 to OEP-1.4.
Around ten files are failing, because they have in
temporal.reference_date
a none valid input (string: "none" instead of a datestring) and produce an error ("Unknown string format:", timestr).If I have a look at the corresponding file [
parse.py
] (https://github.com/OpenEnergyPlatform/omi/blob/dev/src/omi/dialects/oep/parser.py) I can see that there are multiple instances in whichparse_date
is used without a safety net.I would solve the issue in the concerning code as follows. Also for all the other occurrences of
parse_date
inparse.py
.BEFORE:
AFTER:
What do you think? Is this approach feasible?
The text was updated successfully, but these errors were encountered: