equinor / fmu-dataio

FMU data standard and data export with rich metadata in the FMU context
https://fmu-dataio.readthedocs.io/en/latest/
Apache License 2.0
10 stars 14 forks source link

Be more specific regarding the typing for the tracklog.event #669

Closed tnatt closed 1 month ago

tnatt commented 1 month ago

In the meta.TracklogEvent the event field is typed as a str and the examples states three types. https://github.com/equinor/fmu-dataio/blob/0c2d04016875c2194b0f1777c37bb743e5880e1b/src/fmu/dataio/datastructure/meta/meta.py#L327-L329

We should constrain the type for the event field inside the meta.TracklogEvent to an Enum or at least a Literal instead of str

tnatt commented 1 month ago

covered in #662