From 3121c74f65ff4f1abc996c8815f8cd8f3b169e1b Mon Sep 17 00:00:00 2001 From: veenstrajelmer Date: Fri, 13 Oct 2023 17:47:13 +0200 Subject: [PATCH] fixed testcase --- tests/examples/preprocess_hydrolib_readwritepol.py | 6 +++--- tests/test_interpolate_grid2bnd.py | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/examples/preprocess_hydrolib_readwritepol.py b/tests/examples/preprocess_hydrolib_readwritepol.py index 902298424..7ddaee67d 100644 --- a/tests/examples/preprocess_hydrolib_readwritepol.py +++ b/tests/examples/preprocess_hydrolib_readwritepol.py @@ -14,9 +14,9 @@ dir_output = '.' file_pli_list = [r'p:\archivedprojects\11208054-004-dcsm-fm\models\model_input\bnd_cond\pli\DCSM-FM_OB_all_20181108.pli', - r'p:\1230882-emodnet_hrsm\GTSMv5.0\data\GSHHS_high_min1000km2.ldb', - r'p:\archivedprojects\11205259-006-d-hydro-grevelingen\2Dh\model\2002\geometry\structures\Grevelingen-FM_BL_fxw.pliz', - r'p:\archivedprojects\11205258-006-kpp2020_rmm-g6\C_Work\04_randvoorwaarden\keringen\Maeslantkering\Maeslant.tek', + # r'p:\1230882-emodnet_hrsm\GTSMv5.0\data\GSHHS_high_min1000km2.ldb', + # r'p:\archivedprojects\11205259-006-d-hydro-grevelingen\2Dh\model\2002\geometry\structures\Grevelingen-FM_BL_fxw.pliz', + # r'p:\archivedprojects\11205258-006-kpp2020_rmm-g6\C_Work\04_randvoorwaarden\keringen\Maeslantkering\Maeslant.tek', ] for file_pli in file_pli_list: diff --git a/tests/test_interpolate_grid2bnd.py b/tests/test_interpolate_grid2bnd.py index 46cc08773..2be914919 100644 --- a/tests/test_interpolate_grid2bnd.py +++ b/tests/test_interpolate_grid2bnd.py @@ -243,11 +243,15 @@ def test_interp_uds_to_plipoints(): very basic test for function, should be made more strict with learnings from workinprogress_interpolate_uds_toplipoints.py """ + + ncbnd_construct = dfmt.get_ncbnd_construct() + varn_pointname = ncbnd_construct['varn_pointname'] + file_nc = dfmt.data.fm_grevelingen_map(return_filepath=True) uds = dfmt.open_partitioned_dataset(file_nc) gdf = gpd.GeoDataFrame(geometry=gpd.points_from_xy([51500,55000],[418800,421500])) - gdf['plipoint_name'] = ['pt_0001','pt_0002'] + gdf[varn_pointname] = ['pt_0001','pt_0002'] # fig, ax = plt.subplots() # uds.mesh2d_flowelem_bl.ugrid.plot(ax=ax)