NTNU-IndEcol / df_file_interchange

File interchange code to consistently save and reload Pandas dataframes with metadata.
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Pydantic context provision on model init/validation mutually exclusive #10

Open EsmeMaxwell opened 6 months ago

EsmeMaxwell commented 6 months ago

The two methods in https://docs.pydantic.dev/latest/concepts/validators/#validation-context appear to be mutually exclusive. So we're picking the .model_validate() one for now because it's simpler and seems to work more reliably.