You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to duplicate a stage in a calculation, which leads to an unreadable file in D-Stability. The error in this case are the waternetcreatorsettings. The created file is:
This error occurs when using GEOLib with pydantic version 2.8, The error is due to this issue: pydantic/pydantic#10037
Because D-Stability cannot read None values, it is recommends to add ser_json_inf_nan='constants' to BaseDataClass. This will keep the constants such as "NaN" in the files, ensuring it can be read by D-Stability. The complete settings in the BaseDataClass will thus become:
classBaseDataClass(BaseModel):
"""Base class for *all* pydantic classes in GEOLib."""model_config=ConfigDict(
validate_assignment=True,
arbitrary_types_allowed=True,
validate_default=True,
ser_json_inf_nan='constants',
extra=settings.extra_fields,
)
The text was updated successfully, but these errors were encountered:
Trying to duplicate a stage in a calculation, which leads to an unreadable file in D-Stability. The error in this case are the waternetcreatorsettings. The created file is:
While it should be:
This error occurs when using GEOLib with
pydantic
version 2.8, The error is due to this issue: pydantic/pydantic#10037Because D-Stability cannot read
None
values, it is recommends to addser_json_inf_nan='constants'
toBaseDataClass
. This will keep the constants such as "NaN" in the files, ensuring it can be read by D-Stability. The complete settings in theBaseDataClass
will thus become:The text was updated successfully, but these errors were encountered: