pastas icon indicating copy to clipboard operation
pastas copied to clipboard

[Enhancement] Check data types in load_model method

Open raoulcollenteur opened this issue 4 years ago • 1 comments
trafficstars

Describe the bug The data types are not well checked when reading a pastas model from a .pas file. See for example this issue in the Pastastore:

https://github.com/pastas/pastastore/issues/39

A name is a string, but load_model with return an integer of only numbers are provided.

Expected behavior Data types should be the same, basically for everything..

raoulcollenteur avatar Jun 22 '21 14:06 raoulcollenteur

Enforce dtypes, e.g. for names (=str). Check for illegal characters in strings.

dbrakenhoff avatar Aug 16 '22 11:08 dbrakenhoff

Closing after PR #415

raoulcollenteur avatar Aug 19 '22 07:08 raoulcollenteur