equinor / webviz-subsurface

Webviz-config plugins for subsurface data.
https://github.com/orgs/equinor/projects/24
GNU General Public License v3.0
58 stars 59 forks source link

Integers/floats in e.g. `SENSCASE` are interpreted as integers/floats #918

Open anders-kiaer opened 2 years ago

anders-kiaer commented 2 years ago

If a modelling project has a senscase list of e.g.:

1
2
3
HIGH
MID
LOW
4
5
6

this will fail on .parquet saving with pyarrow due to mixed types in same column.

Best solution would probably be to use a priori knowledge wrt. columns that should always be considered strings (e.g. SENSCASE), and instruct the data input layer to always have these columns as string type.

asnyv commented 2 years ago

Issue will also be there for SENSNAME, though most users are less likely to use numbers for SENSNAME, it could happen