diff --git a/HISTORY.rst b/HISTORY.rst index 87e1cb8..0304bf1 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -5,6 +5,7 @@ History UNRELEASED ---------- * removed caching again in https://github.com/Deltares/ddlpy/pull/189 +* enforce conversion of strings to char arrays in `ddlpy.dataframe_to_xarray()` in https://github.com/Deltares/ddlpy/pull/194 0.10.0 (2025-12-23) ------------------- diff --git a/ddlpy/utils.py b/ddlpy/utils.py index 3166186..d22e2cd 100644 --- a/ddlpy/utils.py +++ b/ddlpy/utils.py @@ -97,9 +97,9 @@ def dataframe_to_xarray(df: pd.DataFrame, always_preserve=[]): Furthermore, all ".Omschrijving" variables are dropped and the information is added as attributes to the Code variables. - When writing the dataset to disk with ds.to_netcdf() it is recommended to use - `format="NETCDF3_CLASSIC"` or `format="NETCDF4_CLASSIC"` since this automatically - converts variables of dtype