Skip to content

Commit

Permalink
442 prepare 0130 release (#459)
Browse files Browse the repository at this point in the history
* tested notebooks by rerunning them

* Bump version: 0.12.1 → 0.13.0

* updated whatsnew
  • Loading branch information
veenstrajelmer authored Jul 12, 2023
1 parent 76bdf95 commit 7047733
Show file tree
Hide file tree
Showing 9 changed files with 96 additions and 65 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.12.1
current_version = 0.13.0
commit = True
tag = True

Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ authors:
orcid: https://orcid.org/0000-0002-6349-818X
title: "dfm_tools: A Python package for pre- and postprocessing D-FlowFM model input and output files"
type: software
version: 0.12.1
version: 0.13.0
doi: https://doi.org/10.5281/zenodo.7857393
2 changes: 1 addition & 1 deletion dfm_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

__author__ = """Jelmer Veenstra"""
__email__ = '[email protected]'
__version__ = '0.12.1'
__version__ = '0.13.0'

from dfm_tools.deprecated import *
from dfm_tools.errors import *
Expand Down
8 changes: 4 additions & 4 deletions dfm_tools/meshkernel_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ def uds_to_1based_ds(uds):
ds[varn_conn].attrs["_FillValue"] += 1
ds[varn_conn].attrs["start_index"] += 1

print('_FillValue:', ds.mesh2d_face_nodes.attrs['_FillValue'])
print('start_index:', ds.mesh2d_face_nodes.attrs['start_index'])
print('min:', ds.mesh2d_face_nodes.to_numpy().min())
print('max:', ds.mesh2d_face_nodes.to_numpy().max())
# print('_FillValue:', ds.mesh2d_face_nodes.attrs['_FillValue'])
# print('start_index:', ds.mesh2d_face_nodes.attrs['start_index'])
# print('min:', ds.mesh2d_face_nodes.to_numpy().min())
# print('max:', ds.mesh2d_face_nodes.to_numpy().max())
return ds


Expand Down
107 changes: 66 additions & 41 deletions docs/notebooks/modelbuilder_example.ipynb

Large diffs are not rendered by default.

27 changes: 16 additions & 11 deletions docs/notebooks/postprocessing_example.ipynb

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/notebooks/preprocessing_example_hydrolib.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
{
"data": {
"text/plain": [
"<matplotlib.legend.Legend at 0x24a12675280>"
"<matplotlib.legend.Legend at 0x2293f51cf10>"
]
},
"execution_count": 2,
Expand Down Expand Up @@ -64,7 +64,7 @@
{
"data": {
"text/plain": [
"[<matplotlib.lines.Line2D at 0x24a1e0ae910>]"
"[<matplotlib.lines.Line2D at 0x2293f80ea90>]"
]
},
"execution_count": 3,
Expand Down Expand Up @@ -103,7 +103,7 @@
{
"data": {
"text/plain": [
"<matplotlib.collections.QuadMesh at 0x24a1e0ca490>"
"<matplotlib.collections.QuadMesh at 0x229499ca7f0>"
]
},
"execution_count": 4,
Expand Down Expand Up @@ -140,7 +140,7 @@
{
"data": {
"text/plain": [
"<matplotlib.collections.QuadMesh at 0x24a2850ec10>"
"<matplotlib.collections.QuadMesh at 0x22945fec130>"
]
},
"execution_count": 5,
Expand Down
3 changes: 2 additions & 1 deletion docs/whats-new.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
## Unreleased
## 0.13.0 (2023-07-12)

### Feat

- exposed opendap testdata with `dfmt.data.fm_grevelingen_map()` (and others) by [@veenstrajelmer](https://github.com/veenstrajelmer) in [#439](https://github.com/Deltares/dfm_tools/pull/439)
- made coastlines portable with ` dfmt.data.gshhs_coastlines_shp()` by [@veenstrajelmer](https://github.com/veenstrajelmer) in [#443](https://github.com/Deltares/dfm_tools/pull/443)
- improved CMEMS and ERA5 authentication via [getpass](https://docs.python.org/3/library/getpass.html) by [@veenstrajelmer](https://github.com/veenstrajelmer) in [#449](https://github.com/Deltares/dfm_tools/pull/449)
- aligned mesh deletion with `dfmt.meshkernel_delete_withgdf()` by [@veenstrajelmer](https://github.com/veenstrajelmer) in [#455](https://github.com/Deltares/dfm_tools/pull/455)

### Fix

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = dfm_tools
version = 0.12.1
version = 0.13.0
author = Jelmer Veenstra
author_email = [email protected]
description = dfm_tools are pre- and post-processing tools for Delft3D FM
Expand Down

0 comments on commit 7047733

Please sign in to comment.