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
I have checked that this issue has not already been reported.
I have checked that this bug exists on the latest version.
Reproducible Example
Running pytest
Current behaviour
The following warnings are printed (status on 18-10-2024):
2024-10-18T10:59:55.3971023Z ============================= test session starts =============================
2024-10-18T10:59:55.3972357Z platform win32 -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
2024-10-18T10:59:55.3972994Z rootdir: D:\a\hydromt_delft3dfm\hydromt_delft3dfm
2024-10-18T10:59:55.3973479Z configfile: pyproject.toml
2024-10-18T10:59:55.3973880Z plugins: cov-5.0.0
2024-10-18T10:59:55.3974161Z collected 13 items
2024-10-18T10:59:55.3974349Z
2024-10-18T11:00:21.7784775Z tests\test_dflowfm.py .... [ 30%]
2024-10-18T11:02:21.1656440Z tests\test_hydromt.py ...... [ 76%]
2024-10-18T11:02:21.3700343Z tests\test_workflows_crosssections.py . [ 84%]
2024-10-18T11:02:36.2465541Z tests\test_workflows_mesh.py .. [100%]
2024-10-18T11:02:36.2466209Z
2024-10-18T11:02:36.2466416Z ============================== warnings summary ===============================
2024-10-18T11:02:36.2467059Z tests/test_dflowfm.py: 7 warnings
2024-10-18T11:02:36.2467818Z tests/test_hydromt.py: 8 warnings
2024-10-18T11:02:36.2468237Z tests/test_workflows_mesh.py: 4 warnings
2024-10-18T11:02:36.2469154Z D:\a\hydromt_delft3dfm\hydromt_delft3dfm\hydromt_delft3dfm\utils.py:198: FutureWarning: DataFrame.applymap has been deprecated. Use DataFrame.map instead.
2024-10-18T11:02:36.2470157Z df_crsdef = df_crsdef.applymap(lambda x: _list2Str(x))
2024-10-18T11:02:36.2470476Z
2024-10-18T11:02:36.2470630Z tests/test_dflowfm.py: 7 warnings
2024-10-18T11:02:36.2470970Z tests/test_hydromt.py: 8 warnings
2024-10-18T11:02:36.2471337Z tests/test_workflows_mesh.py: 4 warnings
2024-10-18T11:02:36.2473967Z D:\a\hydromt_delft3dfm\hydromt_delft3dfm\hydromt_delft3dfm\utils.py:362: FutureWarning: Downcasting behavior in `replace` is deprecated and will be removed in a future version. To retain the old behavior, explicitly call `result.infer_objects(copy=False)`. To opt-in to the future behavior, set `pd.set_option('future.no_silent_downcasting', True)`
2024-10-18T11:02:36.2475988Z gdf_out["frictionvalue"] = gdf_out["frictionvalue"].replace(fricval)
2024-10-18T11:02:36.2476355Z
2024-10-18T11:02:36.2476504Z tests/test_dflowfm.py: 4 warnings
2024-10-18T11:02:36.2476850Z tests/test_hydromt.py: 32 warnings
2024-10-18T11:02:36.2477839Z C:\hostedtoolcache\windows\Python\3.12.7\x64\Lib\site-packages\pyogrio\raw.py:198: RuntimeWarning: driver GeoJSON does not support open option MODE
2024-10-18T11:02:36.2478691Z return ogr_read(
2024-10-18T11:02:36.2478866Z
2024-10-18T11:02:36.2479013Z tests/test_dflowfm.py: 6 warnings
2024-10-18T11:02:36.2479352Z tests/test_hydromt.py: 46 warnings
2024-10-18T11:02:36.2480482Z C:\hostedtoolcache\windows\Python\3.12.7\x64\Lib\site-packages\hydromt\gis_utils.py:207: DeprecationWarning: The 'unary_union' attribute is deprecated, use the 'union_all()' method instead.
2024-10-18T11:02:36.2481503Z geom = geom.unary_union
2024-10-18T11:02:36.2481701Z
2024-10-18T11:02:36.2481847Z tests/test_dflowfm.py: 4 warnings
2024-10-18T11:02:36.2484069Z tests/test_hydromt.py: 6 warnings
2024-10-18T11:02:36.2484663Z tests/test_workflows_mesh.py: 2 warnings
2024-10-18T11:02:36.2485479Z D:\a\hydromt_delft3dfm\hydromt_delft3dfm\hydromt_delft3dfm\utils.py:870: SettingWithCopyWarning:
2024-10-18T11:02:36.2486271Z A value is trying to be set on a copy of a slice from a DataFrame.
2024-10-18T11:02:36.2486865Z Try using .loc[row_indexer,col_indexer] = value instead
2024-10-18T11:02:36.2487264Z
2024-10-18T11:02:36.2488135Z See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
2024-10-18T11:02:36.2488989Z _df["geometry"] = _df.apply(
2024-10-18T11:02:36.2489344Z
2024-10-18T11:02:36.2489565Z tests/test_dflowfm.py::test_setup_channels
2024-10-18T11:02:36.2491067Z C:\hostedtoolcache\windows\Python\3.12.7\x64\Lib\site-packages\pooch\processors.py:262: DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior.
2024-10-18T11:02:36.2492656Z tar_file.extractall(path=extract_dir)
2024-10-18T11:02:36.2493124Z
2024-10-18T11:02:36.2493259Z tests/test_dflowfm.py: 3 warnings
2024-10-18T11:02:36.2493634Z tests/test_hydromt.py: 18 warnings
2024-10-18T11:02:36.2495387Z C:\hostedtoolcache\windows\Python\3.12.7\x64\Lib\site-packages\geopandas\geoseries.py:720: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`
2024-10-18T11:02:36.2497795Z val = getattr(super(), mtd)(*args, **kwargs)
2024-10-18T11:02:36.2498372Z
2024-10-18T11:02:36.2498598Z tests/test_dflowfm.py: 1 warning
2024-10-18T11:02:36.2499274Z tests/test_hydromt.py: 16 warnings
2024-10-18T11:02:36.2500769Z C:\hostedtoolcache\windows\Python\3.12.7\x64\Lib\site-packages\geopandas\geodataframe.py:1819: SettingWithCopyWarning:
2024-10-18T11:02:36.2502274Z A value is trying to be set on a copy of a slice from a DataFrame.
2024-10-18T11:02:36.2503236Z Try using .loc[row_indexer,col_indexer] = value instead
2024-10-18T11:02:36.2503999Z
2024-10-18T11:02:36.2506231Z See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
2024-10-18T11:02:36.2507652Z super().__setitem__(key, value)
2024-10-18T11:02:36.2508051Z
2024-10-18T11:02:36.2508292Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2508956Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2509840Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2510499Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2511160Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2511851Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2512546Z tests/test_hydromt.py::test_model_build_piave_code
2024-10-18T11:02:36.2513222Z tests/test_hydromt.py::test_model_build_piave_code
2024-10-18T11:02:36.2515054Z D:\a\hydromt_delft3dfm\hydromt_delft3dfm\hydromt_delft3dfm\workflows\crosssections.py:381: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.
2024-10-18T11:02:36.2517820Z The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.
2024-10-18T11:02:36.2519181Z
2024-10-18T11:02:36.2520889Z For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.
2024-10-18T11:02:36.2522871Z
2024-10-18T11:02:36.2523440Z
2024-10-18T11:02:36.2524525Z crosssections_["crsdef_closed"].replace({"yes": 1, "no": 0}, inplace=True)
2024-10-18T11:02:36.2526068Z
2024-10-18T11:02:36.2526366Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2527076Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2527765Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2528466Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2529155Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2529861Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2530580Z tests/test_hydromt.py::test_model_build_piave_code
2024-10-18T11:02:36.2531309Z tests/test_hydromt.py::test_model_build_piave_code
2024-10-18T11:02:36.2534561Z D:\a\hydromt_delft3dfm\hydromt_delft3dfm\hydromt_delft3dfm\workflows\crosssections.py:381: FutureWarning: Downcasting behavior in `replace` is deprecated and will be removed in a future version. To retain the old behavior, explicitly call `result.infer_objects(copy=False)`. To opt-in to the future behavior, set `pd.set_option('future.no_silent_downcasting', True)`
2024-10-18T11:02:36.2537599Z crosssections_["crsdef_closed"].replace({"yes": 1, "no": 0}, inplace=True)
2024-10-18T11:02:36.2538265Z
2024-10-18T11:02:36.2538513Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2539230Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2542087Z C:\hostedtoolcache\windows\Python\3.12.7\x64\Lib\site-packages\hydromt\gis_utils.py:120: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise an error in a future version of pandas. Value '[]' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.
2024-10-18T11:02:36.2544686Z gdf1.loc[valid, "index_right"] = idx_nn[valid]
2024-10-18T11:02:36.2545133Z
2024-10-18T11:02:36.2545382Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2546125Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2546997Z tests/test_workflows_crosssections.py::test_set_xyz_crosssections
2024-10-18T11:02:36.2550563Z D:\a\hydromt_delft3dfm\hydromt_delft3dfm\hydromt_delft3dfm\workflows\crosssections.py:436: DeprecationWarning: DataFrameGroupBy.apply operated on the grouping columns. This behavior is deprecated, and in a future version of pandas the grouping columns will be excluded from the operation. Either pass `include_groups=False` to exclude the groupings or explicitly select the grouping columns after groupby to silence this warning.
2024-10-18T11:02:36.2554156Z crosssections = crosssections.groupby("crsid").apply(xyzp2xyzl, (["order"]))
2024-10-18T11:02:36.2554834Z
2024-10-18T11:02:36.2555076Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2555957Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2558896Z C:\hostedtoolcache\windows\Python\3.12.7\x64\Lib\site-packages\hydromt\gis_utils.py:120: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise an error in a future version of pandas. Value '['river_1']' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.
2024-10-18T11:02:36.2561917Z gdf1.loc[valid, "index_right"] = idx_nn[valid]
2024-10-18T11:02:36.2562375Z
2024-10-18T11:02:36.2562599Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2563021Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2563458Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2563906Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2564381Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2564835Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2565312Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2565768Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2566218Z tests/test_hydromt.py::test_model_build_piave_code
2024-10-18T11:02:36.2567368Z C:\hostedtoolcache\windows\Python\3.12.7\x64\Lib\site-packages\shapely\linear.py:88: RuntimeWarning: invalid value encountered in line_locate_point
2024-10-18T11:02:36.2568282Z return lib.line_locate_point(line, other)
2024-10-18T11:02:36.2568575Z
2024-10-18T11:02:36.2568729Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2569179Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2569611Z tests/test_hydromt.py::test_model_build_piave_code
2024-10-18T11:02:36.2570719Z D:\a\hydromt_delft3dfm\hydromt_delft3dfm\hydromt_delft3dfm\dflowfm.py:1460: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.
2024-10-18T11:02:36.2572293Z The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.
2024-10-18T11:02:36.2573151Z
2024-10-18T11:02:36.2574195Z For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.
2024-10-18T11:02:36.2575165Z
2024-10-18T11:02:36.2575391Z
2024-10-18T11:02:36.2575790Z manholes["_streetlevel_dem"].fillna(manholes["streetlevel"], inplace=True)
2024-10-18T11:02:36.2576180Z
2024-10-18T11:02:36.2576361Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2576774Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2577221Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2577681Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2579497Z C:\hostedtoolcache\windows\Python\3.12.7\x64\Lib\site-packages\hydromt\gis_utils.py:120: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise an error in a future version of pandas. Value '['branch_12' 'branch_3']' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.
2024-10-18T11:02:36.2581111Z gdf1.loc[valid, "index_right"] = idx_nn[valid]
2024-10-18T11:02:36.2581382Z
2024-10-18T11:02:36.2581530Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2581966Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2582409Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2582864Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2584013Z D:\a\hydromt_delft3dfm\hydromt_delft3dfm\hydromt_delft3dfm\workflows\crosssections.py:615: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.
2024-10-18T11:02:36.2585737Z The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.
2024-10-18T11:02:36.2586595Z
2024-10-18T11:02:36.2587631Z For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.
2024-10-18T11:02:36.2588623Z
2024-10-18T11:02:36.2588821Z
2024-10-18T11:02:36.2589194Z crosssections["closed"].replace({1: "yes", 0: "no"}, inplace=True)
2024-10-18T11:02:36.2589574Z
2024-10-18T11:02:36.2589727Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2590154Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2590571Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2591034Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2592197Z D:\a\hydromt_delft3dfm\hydromt_delft3dfm\hydromt_delft3dfm\workflows\crosssections.py:759: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.
2024-10-18T11:02:36.2593902Z The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.
2024-10-18T11:02:36.2594751Z
2024-10-18T11:02:36.2595750Z For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.
2024-10-18T11:02:36.2596747Z
2024-10-18T11:02:36.2596993Z
2024-10-18T11:02:36.2597387Z crosssections_["crsdef_closed"].replace({"yes": 1, "no": 0}, inplace=True)
2024-10-18T11:02:36.2597793Z
2024-10-18T11:02:36.2597948Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2598379Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2598791Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2599244Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2601162Z D:\a\hydromt_delft3dfm\hydromt_delft3dfm\hydromt_delft3dfm\workflows\crosssections.py:759: FutureWarning: Downcasting behavior in `replace` is deprecated and will be removed in a future version. To retain the old behavior, explicitly call `result.infer_objects(copy=False)`. To opt-in to the future behavior, set `pd.set_option('future.no_silent_downcasting', True)`
2024-10-18T11:02:36.2602977Z crosssections_["crsdef_closed"].replace({"yes": 1, "no": 0}, inplace=True)
2024-10-18T11:02:36.2603355Z
2024-10-18T11:02:36.2603554Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2603960Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2604491Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2604960Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2606718Z C:\hostedtoolcache\windows\Python\3.12.7\x64\Lib\site-packages\hydromt\gis_utils.py:120: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise an error in a future version of pandas. Value '['branch_13']' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.
2024-10-18T11:02:36.2608277Z gdf1.loc[valid, "index_right"] = idx_nn[valid]
2024-10-18T11:02:36.2608581Z
2024-10-18T11:02:36.2608732Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2609191Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2609624Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2610036Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2610505Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2610961Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2612074Z D:\a\hydromt_delft3dfm\hydromt_delft3dfm\hydromt_delft3dfm\dflowfm.py:1619: DeprecationWarning: Using iterating over the DataCatalog directly is deprecated." " Please use cat.get_source("name")
2024-10-18T11:02:36.2614062Z and self.data_catalog[forcing_geodataset_fn].data_type == "GeoDataset"
2024-10-18T11:02:36.2614450Z
2024-10-18T11:02:36.2614615Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2615072Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2616680Z C:\hostedtoolcache\windows\Python\3.12.7\x64\Lib\site-packages\pandas\core\generic.py:6313: DeprecationWarning: Overriding the CRS of a GeoDataFrame that already has CRS. This unsafe behavior will be deprecated in future versions. Use GeoDataFrame.set_crs method instead
2024-10-18T11:02:36.2618078Z return object.__setattr__(self, name, value)
2024-10-18T11:02:36.2618355Z
2024-10-18T11:02:36.2618535Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2618973Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2619990Z D:\a\hydromt_delft3dfm\hydromt_delft3dfm\hydromt_delft3dfm\dflowfm.py:1709: DeprecationWarning: The staticgeoms method will be deprecated in future versions, use geoms instead.
2024-10-18T11:02:36.2621043Z network_by_branchtype = self.staticgeoms[f"{branch_type}s"]
2024-10-18T11:02:36.2621386Z
2024-10-18T11:02:36.2622010Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2622545Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2624326Z C:\hostedtoolcache\windows\Python\3.12.7\x64\Lib\site-packages\hydromt\gis_utils.py:120: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise an error in a future version of pandas. Value '['branch_7']' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.
2024-10-18T11:02:36.2625886Z gdf1.loc[valid, "index_right"] = idx_nn[valid]
2024-10-18T11:02:36.2626189Z
2024-10-18T11:02:36.2626342Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2626807Z tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2627888Z D:\a\hydromt_delft3dfm\hydromt_delft3dfm\hydromt_delft3dfm\dflowfm.py:2653: DeprecationWarning: The 'unary_union' attribute is deprecated, use the 'union_all()' method instead.
2024-10-18T11:02:36.2663318Z ).unary_union
2024-10-18T11:02:36.2663569Z
2024-10-18T11:02:36.2663840Z tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2664563Z tests/test_workflows_mesh.py::test_hydrolib_network_from_mesh
2024-10-18T11:02:36.2665367Z tests/test_workflows_mesh.py::test_setup_links1d2d_add_links
2024-10-18T11:02:36.2668378Z D:\a\hydromt_delft3dfm\hydromt_delft3dfm\hydromt_delft3dfm\utils.py:148: FutureWarning: Downcasting behavior in `replace` is deprecated and will be removed in a future version. To retain the old behavior, explicitly call `result.infer_objects(copy=False)`. To opt-in to the future behavior, set `pd.set_option('future.no_silent_downcasting', True)`
2024-10-18T11:02:36.2670250Z branches["branchtype"] = branches["branchtype"].replace(
2024-10-18T11:02:36.2670594Z
2024-10-18T11:02:36.2670735Z tests/test_hydromt.py: 25 warnings
2024-10-18T11:02:36.2672472Z C:\hostedtoolcache\windows\Python\3.12.7\x64\Lib\site-packages\pydantic\v1\validators.py:157: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
2024-10-18T11:02:36.2674006Z return float(v)
2024-10-18T11:02:36.2674200Z
2024-10-18T11:02:36.2674372Z tests/test_hydromt.py::test_model_build_piave_code
2024-10-18T11:02:36.2674818Z tests/test_hydromt.py::test_model_build_piave_code
2024-10-18T11:02:36.2675801Z C:\hostedtoolcache\windows\Python\3.12.7\x64\Lib\site-packages\pyogrio\raw.py:198: RuntimeWarning: driver GPKG does not support open option MODE
2024-10-18T11:02:36.2676636Z return ogr_read(
2024-10-18T11:02:36.2676999Z
2024-10-18T11:02:36.2677169Z tests/test_hydromt.py::test_model_build_piave_code
2024-10-18T11:02:36.2678743Z C:\hostedtoolcache\windows\Python\3.12.7\x64\Lib\site-packages\hydromt\gis_utils.py:164: UserWarning: Geometry is in a geographic CRS. Results from 'interpolate' are likely incorrect. Use 'GeoSeries.to_crs()' to re-project geometries to a projected CRS before this operation.
2024-10-18T11:02:36.2680078Z
2024-10-18T11:02:36.2680447Z pnts = gdf1.geometry.interpolate(0.5, normalized=True) # mid point
2024-10-18T11:02:36.2680848Z
2024-10-18T11:02:36.2681013Z tests/test_hydromt.py::test_model_build_piave_code
2024-10-18T11:02:36.2682494Z D:\a\hydromt_delft3dfm\hydromt_delft3dfm\hydromt_delft3dfm\workflows\dem.py:113: UserWarning: Geometry is in a geographic CRS. Results from 'length' are likely incorrect. Use 'GeoSeries.to_crs()' to re-project geometries to a projected CRS before this operation.
2024-10-18T11:02:36.2683737Z
2024-10-18T11:02:36.2684112Z valid = gdf_riv.length > 0 # drop pits or any zero length segments
2024-10-18T11:02:36.2684477Z
2024-10-18T11:02:36.2684640Z tests/test_hydromt.py::test_model_build_piave_code
2024-10-18T11:02:36.2686964Z C:\hostedtoolcache\windows\Python\3.12.7\x64\Lib\site-packages\pyflwdir\flwdir.py:434: DeprecationWarning: Bitwise inversion '~' on bool is deprecated and will be removed in Python 3.16. This returns the bitwise inversion of the underlying int object and is usually not what you expect from negating a bool. Use the 'not' operator for boolean negation or ~int(x) if you really want the bitwise inversion of the underlying int.
2024-10-18T11:02:36.2689061Z strord=self._check_data(strord, "strord", optional=~restrict_strord),
2024-10-18T11:02:36.2689459Z
2024-10-18T11:02:36.2689692Z tests/test_workflows_crosssections.py::test_set_xyz_crosssections
2024-10-18T11:02:36.2691458Z D:\a\hydromt_delft3dfm\hydromt_delft3dfm\hydromt_delft3dfm\workflows\branches.py:1132: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise an error in a future version of pandas. Value '' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.
2024-10-18T11:02:36.2692927Z result.loc[~valid_rows, "branch_id"] = ""
2024-10-18T11:02:36.2693187Z
2024-10-18T11:02:36.2693519Z -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
2024-10-18T11:02:36.2693931Z
2024-10-18T11:02:36.2694207Z ---------- coverage: platform win32, python 3.12.7-final-0 -----------
2024-10-18T11:02:36.2694740Z Name Stmts Miss Cover
2024-10-18T11:02:36.2695274Z ------------------------------------------------------------------
2024-10-18T11:02:36.2695791Z hydromt_delft3dfm\__init__.py 4 0 100%
2024-10-18T11:02:36.2696338Z hydromt_delft3dfm\dflowfm.py 922 131 86%
2024-10-18T11:02:36.2696902Z hydromt_delft3dfm\gis_utils.py 75 4 95%
2024-10-18T11:02:36.2697467Z hydromt_delft3dfm\graph_utils.py 29 3 90%
2024-10-18T11:02:36.2698024Z hydromt_delft3dfm\mesh_utils.py 118 3 97%
2024-10-18T11:02:36.2698561Z hydromt_delft3dfm\utils.py 451 30 93%
2024-10-18T11:02:36.2699113Z hydromt_delft3dfm\workflows\__init__.py 9 0 100%
2024-10-18T11:02:36.2699689Z hydromt_delft3dfm\workflows\boundaries.py 214 76 64%
2024-10-18T11:02:36.2700267Z hydromt_delft3dfm\workflows\branches.py 348 49 86%
2024-10-18T11:02:36.2700822Z hydromt_delft3dfm\workflows\crosssections.py 260 67 74%
2024-10-18T11:02:36.2701390Z hydromt_delft3dfm\workflows\dem.py 129 21 84%
2024-10-18T11:02:36.2701949Z hydromt_delft3dfm\workflows\manholes.py 60 1 98%
2024-10-18T11:02:36.2702508Z hydromt_delft3dfm\workflows\mesh.py 206 52 75%
2024-10-18T11:02:36.2703042Z hydromt_delft3dfm\workflows\region.py 20 2 90%
2024-10-18T11:02:36.2703690Z hydromt_delft3dfm\workflows\roughness.py 8 3 62%
2024-10-18T11:02:36.2704247Z hydromt_delft3dfm\workflows\structures.py 52 9 83%
2024-10-18T11:02:36.2704811Z ------------------------------------------------------------------
2024-10-18T11:02:36.2705247Z TOTAL 2905 451 84%
2024-10-18T11:02:36.2705695Z Coverage XML written to file coverage.xml
2024-10-18T11:02:36.2705980Z
2024-10-18T11:02:36.2706163Z ============================== slowest durations ==============================
2024-10-18T11:02:36.2706703Z 67.61s call tests/test_hydromt.py::test_model_build[piave]
2024-10-18T11:02:36.2707249Z 21.38s call tests/test_hydromt.py::test_model_build[local]
2024-10-18T11:02:36.2707785Z 13.04s call tests/test_hydromt.py::test_model_build_piave_code
2024-10-18T11:02:36.2708387Z 9.97s call tests/test_dflowfm.py::test_read_write_config_empty_paths
2024-10-18T11:02:36.2709039Z 9.08s call tests/test_workflows_mesh.py::test_hydrolib_network_from_mesh
2024-10-18T11:02:36.2709630Z 8.81s call tests/test_dflowfm.py::test_setup_channels
2024-10-18T11:02:36.2710130Z 7.66s call tests/test_hydromt.py::test_model_class[piave]
2024-10-18T11:02:36.2710757Z 6.34s call tests/test_hydromt.py::test_model_build_local_code
2024-10-18T11:02:36.2711368Z 4.73s call tests/test_workflows_mesh.py::test_setup_links1d2d_add_links
2024-10-18T11:02:36.2711964Z 3.98s call tests/test_dflowfm.py::test_setup_mesh2d_refine
2024-10-18T11:02:36.2712472Z 3.59s call tests/test_dflowfm.py::test_write_structures
2024-10-18T11:02:36.2713003Z 3.32s call tests/test_hydromt.py::test_model_class[local]
2024-10-18T11:02:36.2713619Z 0.20s call tests/test_workflows_crosssections.py::test_set_xyz_crosssections
2024-10-18T11:02:36.2714282Z 0.01s setup tests/test_dflowfm.py::test_read_write_config_empty_paths
2024-10-18T11:02:36.2714651Z
2024-10-18T11:02:36.2714941Z (25 durations < 0.005s hidden. Use -vv to show these durations.)
2024-10-18T11:02:36.2715523Z ================ 13 passed, 280 warnings in 167.95s (0:02:47) =================
Desired behaviour
No warnings
Additional context
No response
The text was updated successfully, but these errors were encountered:
Version checks
Reproducible Example
Running pytest
Current behaviour
The following warnings are printed (status on 18-10-2024):
Desired behaviour
No warnings
Additional context
No response
The text was updated successfully, but these errors were encountered: