Skip to content

Commit 3f2096e

Browse files
revert workaround (#1077)
* reverted temporary hycom workaround * updated comments in notebook and test script * updated installation docs
1 parent 622fae4 commit 3f2096e

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

docs/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
## Setup local developer environment
1414

1515
- python 3.11 is recommended, [python>=3.9 is required](https://github.com/Deltares/dfm_tools/issues/267), [python 3.13 not yet supported](https://github.com/Deltares/dfm_tools/issues/559)
16-
- download Miniforge3 from [the miniforge github](https://github.com/conda-forge/miniforge?tab=readme-ov-file#download) and install it with the recommended settings.
16+
- download Miniforge3 from [conda-forge.org](https://conda-forge.org/miniforge) and install it with the recommended settings.
1717
- open Miniforge Prompt and navigate to the local checkout folder of the repository
1818
- `conda create --name dfm_tools_env python=3.11 git spyder -y` (`git` and `spyder` are optional)
1919
- `conda activate dfm_tools_env`

docs/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
## Recommended installation
88

9-
- download Miniforge3 from [the miniforge github](https://github.com/conda-forge/miniforge?tab=readme-ov-file#download) and install it with the recommended settings.
9+
- download Miniforge3 from [conda-forge.org](https://conda-forge.org/miniforge) and install it with the recommended settings.
1010
- open Miniforge Prompt
1111
- `conda create --name dfm_tools_env python=3.12 git spyder -y` (`git` and `spyder` are optional)
1212
- `conda activate dfm_tools_env`

docs/notebooks/modelbuilder_example.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,7 @@
10651065
" \n",
10661066
" mdu.physics.iniwithnudge = 2 # support for initial sal/tem fields via iniwithnudge (requires a 3D model)\n",
10671067
" mdu.physics.salinity = 1 # enable salinity\n",
1068-
" mdu.physics.temperature = 5 # composite ocean model\n",
1068+
" mdu.physics.temperature = 5 # composite ocean model. This is automatically set to 1 if additional ERA5 variables are not provided.\n",
10691069
" mdu.physics.initialsalinity = 30 # for coastal models (default is 0)\n",
10701070
" mdu.physics.heat_eachstep = 1 # compute heatflux model on each timestep\n",
10711071
" mdu.physics.rhoairrhowater = 1 # better wind/water interaction\n",

tests/test_download.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def test_copernicusmarine_get_dataset_id():
254254
@pytest.mark.unittest
255255
def test_download_cmems_my(tmp_path):
256256
# deliberately take inconvenient time/spatial subset to test if
257-
# coordinates_selection_method='outside'
257+
# coordinates_selection_method='outside' works properly
258258
date_min = '2010-01-01 01:00'
259259
date_max = '2010-01-01 23:00'
260260
longitude_min, longitude_max, latitude_min, latitude_max = 2.001, 3.001, 51.001, 52.001 #test domain
@@ -330,7 +330,6 @@ def test_download_hycom(tmp_path):
330330
dataset_url = [f'https://tds.hycom.org/thredds/dodsC/GLBu0.08/expt_19.1/{year}' for year in period_range_years] #list is possible with hycom, since it uses xr.open_mfdataset()
331331
# temporary fix to avoid RuntimeError: NetCDF: file not found
332332
# https://github.com/Deltares/dfm_tools/issues/1048
333-
dataset_url = dataset_url[0]
334333
file_prefix = 'hycom_'
335334
dfmt.download_OPeNDAP(dataset_url=dataset_url,
336335
varkey=varkey,

0 commit comments

Comments
 (0)