Skip to content

Commit 0b1fdce

Browse files
re-enabled era5 tests (#1091)
1 parent f9631a4 commit 0b1fdce

File tree

5 files changed

+20
-7
lines changed

5 files changed

+20
-7
lines changed

.github/workflows/pytest-py313.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ jobs:
4040
COPERNICUSMARINE_SERVICE_USERNAME: ${{ secrets.COPERNICUSMARINE_SERVICE_USERNAME }}
4141
COPERNICUSMARINE_SERVICE_PASSWORD: ${{ secrets.COPERNICUSMARINE_SERVICE_PASSWORD }}
4242
run: |
43-
pytest -m "not requireslocaldata and not era5slow" --cov=dfm_tools --cov-report xml --cov-report term
43+
pytest -m "not requireslocaldata" --cov=dfm_tools --cov-report xml --cov-report term

.github/workflows/pytest-py39-mindeps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ jobs:
4747
COPERNICUSMARINE_SERVICE_USERNAME: ${{ secrets.COPERNICUSMARINE_SERVICE_USERNAME }}
4848
COPERNICUSMARINE_SERVICE_PASSWORD: ${{ secrets.COPERNICUSMARINE_SERVICE_PASSWORD }}
4949
run: |
50-
pytest -m "not requireslocaldata and not era5slow" --cov=dfm_tools --cov-report xml --cov-report term
50+
pytest -m "not requireslocaldata" --cov=dfm_tools --cov-report xml --cov-report term

.github/workflows/pytest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
COPERNICUSMARINE_SERVICE_USERNAME: ${{ secrets.COPERNICUSMARINE_SERVICE_USERNAME }}
4646
COPERNICUSMARINE_SERVICE_PASSWORD: ${{ secrets.COPERNICUSMARINE_SERVICE_PASSWORD }}
4747
run: |
48-
pytest -m "not requireslocaldata and not era5slow" --cov=dfm_tools --cov-report xml --cov-report term
48+
pytest -m "not requireslocaldata" --cov=dfm_tools --cov-report xml --cov-report term
4949
- uses: codecov/codecov-action@v4
5050
env:
5151
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}

docs/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
- create and checkout branch for release
6969
- bump the versionnumber with `bumpversion minor`
7070
- update `docs/whats-new.md` and add a date to the current release heading
71-
- run local testbank with `pytest -m "not era5slow and not requireslocaldata"`
71+
- run local testbank with `pytest -m "not requireslocaldata"`
7272
- local check with: `python -m build` and `twine check dist/*` ([does not work on WCF](https://github.com/pypa/setuptools/issues/4133))
7373
- commit+push to branch and merge PR
7474
- copy the dfm_tools version from [pyproject.toml](https://github.com/Deltares/dfm_tools/blob/main/pyproject.toml) (e.g. `0.11.0`)

docs/notebooks/modelbuilder_example.ipynb

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,10 +1018,22 @@
10181018
},
10191019
{
10201020
"cell_type": "code",
1021-
"execution_count": 16,
1021+
"execution_count": 1,
10221022
"id": "0f01a183",
10231023
"metadata": {},
1024-
"outputs": [],
1024+
"outputs": [
1025+
{
1026+
"ename": "NameError",
1027+
"evalue": "name 'os' is not defined",
1028+
"output_type": "error",
1029+
"traceback": [
1030+
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
1031+
"\u001b[1;31mNameError\u001b[0m Traceback (most recent call last)",
1032+
"Cell \u001b[1;32mIn[1], line 4\u001b[0m\n\u001b[0;32m 1\u001b[0m \u001b[38;5;66;03m# initialize mdu file and update settings\u001b[39;00m\n\u001b[0;32m 2\u001b[0m \u001b[38;5;66;03m# all keywords are documented in the Delft3D FM user manual\u001b[39;00m\n\u001b[0;32m 3\u001b[0m \u001b[38;5;66;03m# additional 2D/3D settings discussed in https://github.com/Deltares/dfm_tools/issues/951\u001b[39;00m\n\u001b[1;32m----> 4\u001b[0m mdu_file \u001b[38;5;241m=\u001b[39m \u001b[43mos\u001b[49m\u001b[38;5;241m.\u001b[39mpath\u001b[38;5;241m.\u001b[39mjoin(dir_output, \u001b[38;5;124mf\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mmodel_name\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m.mdu\u001b[39m\u001b[38;5;124m'\u001b[39m)\n\u001b[0;32m 5\u001b[0m mdu \u001b[38;5;241m=\u001b[39m hcdfm\u001b[38;5;241m.\u001b[39mFMModel()\n\u001b[0;32m 7\u001b[0m \u001b[38;5;66;03m# add the grid (_net.nc, network file)\u001b[39;00m\n",
1033+
"\u001b[1;31mNameError\u001b[0m: name 'os' is not defined"
1034+
]
1035+
}
1036+
],
10251037
"source": [
10261038
"# initialize mdu file and update settings\n",
10271039
"# all keywords are documented in the Delft3D FM user manual\n",
@@ -1038,7 +1050,8 @@
10381050
"# create and add drypointsfile if there are any cells generated that will result in high orthogonality\n",
10391051
"if len(illegalcells_gdf) > 0:\n",
10401052
" illegalcells_polyfile = dfmt.geodataframe_to_PolyFile(illegalcells_gdf)\n",
1041-
" illegalcells_polyfile.save(os.path.join(dir_output,\"illegalcells.pol\"))\n",
1053+
" illegalcells_file = os.path.join(dir_output, \"illegalcells.pol\")\n",
1054+
" illegalcells_polyfile.save(illegalcells_file)\n",
10421055
" mdu.geometry.drypointsfile = [illegalcells_polyfile]\n",
10431056
"\n",
10441057
"# update numerics settings\n",

0 commit comments

Comments
 (0)