OpenEnergyPlatform / oemetadata

Repository for the Open Energy Family metadata. Contains metadata templates, examples and schemas. For metadata conversion see https://github.com/OpenEnergyPlatform/omi
https://openenergyplatform.github.io/oemetadata/
MIT License
21 stars 3 forks source link

OMI bug regarding translation #129

Open hedwiglieselotte opened 1 year ago

hedwiglieselotte commented 1 year ago

Description of the issue

These are the bugs I found while using OMI to review metadata in DigiPlan.

Steps to Reproduce

  1. I created a metadata file
  2. omi translate -f oep-v1.5 -t oep-v1.5

Ideas of solution

Describe possible ideas for solution and evaluate advantages and disadvantages.

Context and Environment

Workflow checklist

hedwiglieselotte commented 1 year ago

Exception 1: omi.dialects.base.parser.ParserException: invalid value for date: 2023-28-03`

hedwiglieselotte commented 1 year ago

Exception 2:

  File "/home/local/RL-INSTITUT/hedwig.bartels/miniconda3/envs/Metadaten/lib/python3.10/site-packages/omi/dialects/oep/parser.py", line 65, in parse_date_or_none
    raise ParserException(f"invalid type for date: {type(x)}")
omi.dialects.base.parser.ParserException: invalid type for date: <class 'list'>