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
Describe the bug
Pli is not supported by StructureModel, currently only brancId+chainage or num/x/yCoordinates are supported. Error upon running reproduction code:
ValidationError: 2 validation errors for StructureModel
RMM_structures.ini -> structure -> 0 -> HV_1029.81_R_SK_Haringvlietsluizen1 -> __root__
Specify location either by setting `branchId` and `chainage` or `num/x/yCoordinates` fields. (type=assertion_error)
RMM_structures.ini -> structure -> 1 -> HV_1029.81_R_SK_Haringvlietsluizen2 -> __root__
Specify location either by setting `branchId` and `chainage` or `num/x/yCoordinates` fields. (type=assertion_error)
To Reproduce
from pathlib import Path
from hydrolib.core.io.mdu.models import StructureModel
file_struct = Path(r'p:\11206813-006-kpp2021_rmm-2d\C_Work\31_RMM_FMmodel\computations\model_setup\run_206_HYDROLIB\RMM_structures.ini')
structs = StructureModel(file_struct)
Expected behavior
Acceptance of coordinates via a pli file.
Version info (please complete the following information):
OS: Windows 10 and Spyder
Version: hydrolib-core main branch
The text was updated successfully, but these errors were encountered:
Describe the bug
Pli is not supported by StructureModel, currently only brancId+chainage or num/x/yCoordinates are supported. Error upon running reproduction code:
To Reproduce
Expected behavior
Acceptance of coordinates via a pli file.
Version info (please complete the following information):
The text was updated successfully, but these errors were encountered: