Skip to content

Commit d56c8a7

Browse files
author
Prisca van der Sluis
committed
bump: version 0.4.1 → 0.5.0
1 parent 289a2f2 commit d56c8a7

File tree

5 files changed

+190
-152
lines changed

5 files changed

+190
-152
lines changed

docs/changelog.md

Lines changed: 185 additions & 147 deletions
Original file line numberDiff line numberDiff line change
@@ -1,147 +1,185 @@
1-
## 0.4.1 (2023-01-26)
2-
3-
### Fix
4-
- `_add_nodes_to_segments` fixed ({{gh_pr(440)}})
5-
6-
## 0.4.0 (2023-01-23)
7-
8-
### Feat
9-
10-
- Remove io namespace and add convenient imports/API at several directory levels ({{gh_pr(438)}})
11-
- Added the option for all supported files to customize the float formatting when saving ({{gh_pr(406)}})
12-
- Suppress warning in polyfile parser that the white space at the start of the line is ignored ({{gh_pr(409)}})
13-
- Change data block default spacing from 4 to 2 ({{gh_pr(407)}})
14-
- Add support for non-recursively loading models ({{gh_pr(401)}})
15-
16-
### Fix
17-
18-
- Fixed polylinefile validation for Structure and its subclasses ({{gh_pr(416)}})
19-
- Rename variable in generate_nodes function ({{gh_pr(437)}})
20-
- Ensure that QuantityUnitPairs that are not part of a vector are correctly parsed ({{gh_pr(420)}})
21-
- Enum values are incorrectly written to files ({{gh_pr(403)}})
22-
23-
### Refactor
24-
25-
- Small refactoring of the VectorQuantityUnitPairs and VectorForcingBase ({{gh_pr(422)}})
26-
- Move the base module in XYZ back to IO ({{gh_pr(418)}})
27-
- Refactored support for vectors in .bc files ({{gh_pr(394)}})
28-
29-
## 0.3.1 (2022-10-25)
30-
31-
### Feat
32-
33-
- option `resolve_casing` to fix filepath casing between different OS's.
34-
- Added support for the use of vectors within forcing models with a t3d or timeseries function type.
35-
- Added possibility to take structure positions into account when discretizing 1d mesh
36-
- Add support for branches.gui file ({{gh_pr(333)}})
37-
- Drop extra fields for INIBasedModels if they are not in file format definition
38-
- Support crs file for observation cross sections ({{gh_pr(289)}})
39-
- implement mesh generation for pipes ({{gh_pr(294)}}) and fix support different reference system ({{gh_pr(298)}}) ({{gh_pr(299)}})
40-
- removed the writeBalanceFile keyword from the mdu
41-
- support copying generic files/models ({{gh_pr(281)}})
42-
- Support extra MDU sections ({{gh_pr(284)}})
43-
- add binder support with a dockerfile ({{gh_pr(264)}})
44-
45-
### Fix
46-
47-
- Add backwards compatibility for the old "percentage from bed" vertical position type.
48-
- Fix freeze when printing a ForcingModel with multiple [forcing] blocks by omitting the datablocks.
49-
- T3D header is not correct ({{gh_pr(356)}})
50-
- Change AutoStart type from bool to int ({{gh_pr(349)}})
51-
- Skip serialization of empty INI properties when configured ({{gh_pr(336)}})
52-
- Net writer should not produce NaN as fill values ({{gh_pr(363)}})
53-
- Change type of xcoordinates and ycoordinates in Lateral class from int to float ({{gh_pr(351)}})
54-
- Fix that single structure in StructureModel class is correctly converted to a list ({{gh_pr(352)}})
55-
- Ensure poly files can be saved ({{gh_pr(344)}})
56-
- write correct branchorder to net file ({{gh_pr(335)}})
57-
- add zdatum vertical position type ({{gh_pr(324)}})
58-
- parse vertical positions to list ({{gh_pr(325)}})
59-
- make `has_z_values` parameter optional in `polyfile.parser.read_polyfile` ({{gh_pr(312)}})
60-
- Remove unnessary indent in .bc datablocks ({{gh_pr(304)}})
61-
- Fix the types of 4 fields in the MDU file ({{gh_pr(283)}})
62-
63-
### Refactor
64-
- Location specification root validator ({{gh_pr(347)}})
65-
66-
## 0.3.0 (2022-07-11)
67-
68-
### Fix
69-
70-
- Add water level location validation DamBreaks
71-
- allow empty file paths in the .fnm file
72-
- Add modeltype 21 to RR node for open water precipitation/evaporation ({{gh_pr(261)}})
73-
- **filemodel**: ResolveRelativeMode is incorrectly set when reading a model with 'pathsRelativeToParent' set to false ({{gh_pr(259)}})
74-
75-
### Feat
76-
77-
- **network**: additional mesh funcs dhydamo
78-
- support .bc files and more in lateral discharge ({{gh_pr(244)}})
79-
- add support for observation point ini file ({{gh_pr(236)}})
80-
- support .bc files and more in lateral discharge
81-
82-
### Refactor
83-
84-
- **rr**: place all RR-related code+tests in own rr subpackage ({{gh_pr(235)}})
85-
- remove dead code of _process_edges_for_branch
86-
87-
## 0.2.1 (2022-03-15)
88-
89-
### Fix
90-
91-
- **parser**: correctly parse model input fields with leading digits, such as 1D2DLinkFile.- **parser**: allow empty friction specification in all crossdef types. ({{gh_pr(206)}}).
92-
93-
## 0.2.0 (2021-12-17)
94-
### Added
95-
* RainfallRunoff files: [NodeFile][hydrolib.core.io.rr.topology.models.NodeFile] ({{gh_issue(138)}})
96-
and [LinkFile][hydrolib.core.io.rr.topology.models.LinkFile] ({{gh_issue(140)}})
97-
* D-Flow FM files:
98-
* Initial field files: [IniFieldModel][hydrolib.core.io.inifield.models.IniFieldModel],
99-
also added 1D Field INI format: [OneDFieldModel][hydrolib.core.io.onedfield.models.OneDFieldModel] ({{gh_issue(119)}}).
100-
* 1D Roughness INI files: [FrictionModel][hydrolib.core.io.friction.models.FrictionModel] ({{gh_issue(118)}}).
101-
* Storage node files: [StorageNodeModel][hydrolib.core.io.storagenode.models.StorageNodeModel] ({{gh_issue(131)}}).
102-
* General structure: [GeneralStructure][hydrolib.core.io.structure.models.GeneralStructure] ({{gh_issue(79)}}).
103-
* Many additions to the [API documentation](reference/api.md).
104-
105-
106-
### Changed
107-
* All classes that have fields with "keyword values" (such as `frictionType = WhiteColebrook`) now use Enum classes for those values.
108-
See for example [FrictionType][hydrolib.core.io.friction.models.FrictionType] and [FlowDirection][hydrolib.core.io.structure.models.FlowDirection]
109-
({{gh_issue(98)}})
110-
* All crosssection definition type now supported as subclasses of
111-
[CrossSection][hydrolib.core.io.crosssection.models.CrossSectionDefinition] ({{gh_issue(117)}})
112-
* Cross section definition and location classes have been moved from `hydrolib.core.io.ini.models`
113-
to `hydrolib.core.io.crosssection.models`. ({{gh_issue(149)}})
114-
* Changed behavior for file paths in saved files ({{gh_issue(96)}}).
115-
More information about: [technical background](topics/loadsave.md) and a [tutorial](tutorials/loading_and_saving_a_model.md).
116-
117-
118-
### Fixed
119-
* Too strict validation of optional fields in culvert ({{gh_issue(75)}}), pump ({{gh_issue(76)}}),
120-
weir ({{gh_issue(77)}}), orifice ({{gh_issue(78)}}).
121-
* Floating point parser breaks reading/writing of keyword UnifFrictCoef1D2D ({{gh_issue(103)}})
122-
* DIMR config has invalid control element for a single component model ({{gh_issue(127)}})
123-
* DataBlockINIBasedModel.datablock should also support strings (astronomic in .bc files) ({{gh_issue(137)}})
124-
* Saving .bc files incorrectly writes repeated key names as a semicolon-separated list ({{gh_issue(101)}})
125-
* Do not write absolute file paths to file ({{gh_issue(96)}})
126-
127-
## 0.1.5 (2021-11-02)
128-
129-
## 0.1.4 (2021-11-02)
130-
131-
## 0.1.3 (2021-08-05)
132-
133-
### Fix
134-
135-
- netcdf serialization path.
136-
137-
## 0.1.2 (2021-08-05)
138-
139-
### Fix
140-
141-
- **test_version**: Fix updated version
142-
143-
## 0.1.1 (2021-08-05)
144-
145-
### Fix
146-
147-
- **NetworkModel**: Fix default init of Network within NetworkModel
1+
## 0.5.0 (2023-04-17)
2+
3+
### Feat
4+
5+
- Add the quantity `nudge_salinity_temperature` to ext old file header.
6+
- Support the old style external forcings file
7+
- Add support for several coastal MDU keywords
8+
- Add support for *.tim files and *.bc files in the structure file
9+
- Support meteo blocks in external forcings file (#477)
10+
- Remove indentation from MDU file
11+
- Add 4 missing 1D2D settings to FMModel
12+
- Support *.tim files
13+
- Add XYN classes to public API (#492)
14+
- Include old and new observation crossections into MDU FMModel.output class (#470)
15+
- Support observation crosssection .pli via existing PolyFile class (#464)
16+
- Add support for 3D Z-sigma settings in MDU
17+
- Support loading+saving models with configurable OS path style formats (#361)
18+
- Add support for observation point xyn files (#472)
19+
- Support filepath as str besides Path for all model classes under FileBasedModel (#469)
20+
- Add validation for NaN values in datablocks
21+
22+
### Fix
23+
24+
- Fixed issues with the new release script
25+
- Special characters should be parsed correctly from file
26+
- MDU keywords such as 1d2dLinkFile are written to file without comments (#528)
27+
- UGRID network files without faces should be accepted
28+
- correct handling of whitespace and comments in observation point .xyn files (#508)
29+
- Fix resolving of relative paths containing `..` when not using the `resolve_casing` option.
30+
- ignore trailing values or text on polyline data lines to better support boundary polyfiles (#482)
31+
- Reading invalid formatted plifile should raise error instead of warning
32+
- polyline serializer should print empty trailing comment lines
33+
34+
### Refactor
35+
36+
- Make sure of the new Pydantic 1.10 functionality
37+
38+
## 0.4.1 (2023-01-26)
39+
40+
### Fix
41+
- `_add_nodes_to_segments` fixed ({{gh_pr(440)}})
42+
43+
## 0.4.0 (2023-01-23)
44+
45+
### Feat
46+
47+
- Remove io namespace and add convenient imports/API at several directory levels ({{gh_pr(438)}})
48+
- Added the option for all supported files to customize the float formatting when saving ({{gh_pr(406)}})
49+
- Suppress warning in polyfile parser that the white space at the start of the line is ignored ({{gh_pr(409)}})
50+
- Change data block default spacing from 4 to 2 ({{gh_pr(407)}})
51+
- Add support for non-recursively loading models ({{gh_pr(401)}})
52+
53+
### Fix
54+
55+
- Fixed polylinefile validation for Structure and its subclasses ({{gh_pr(416)}})
56+
- Rename variable in generate_nodes function ({{gh_pr(437)}})
57+
- Ensure that QuantityUnitPairs that are not part of a vector are correctly parsed ({{gh_pr(420)}})
58+
- Enum values are incorrectly written to files ({{gh_pr(403)}})
59+
60+
### Refactor
61+
62+
- Small refactoring of the VectorQuantityUnitPairs and VectorForcingBase ({{gh_pr(422)}})
63+
- Move the base module in XYZ back to IO ({{gh_pr(418)}})
64+
- Refactored support for vectors in .bc files ({{gh_pr(394)}})
65+
66+
## 0.3.1 (2022-10-25)
67+
68+
### Feat
69+
70+
- option `resolve_casing` to fix filepath casing between different OS's.
71+
- Added support for the use of vectors within forcing models with a t3d or timeseries function type.
72+
- Added possibility to take structure positions into account when discretizing 1d mesh
73+
- Add support for branches.gui file ({{gh_pr(333)}})
74+
- Drop extra fields for INIBasedModels if they are not in file format definition
75+
- Support crs file for observation cross sections ({{gh_pr(289)}})
76+
- implement mesh generation for pipes ({{gh_pr(294)}}) and fix support different reference system ({{gh_pr(298)}}) ({{gh_pr(299)}})
77+
- removed the writeBalanceFile keyword from the mdu
78+
- support copying generic files/models ({{gh_pr(281)}})
79+
- Support extra MDU sections ({{gh_pr(284)}})
80+
- add binder support with a dockerfile ({{gh_pr(264)}})
81+
82+
### Fix
83+
84+
- Add backwards compatibility for the old "percentage from bed" vertical position type.
85+
- Fix freeze when printing a ForcingModel with multiple [forcing] blocks by omitting the datablocks.
86+
- T3D header is not correct ({{gh_pr(356)}})
87+
- Change AutoStart type from bool to int ({{gh_pr(349)}})
88+
- Skip serialization of empty INI properties when configured ({{gh_pr(336)}})
89+
- Net writer should not produce NaN as fill values ({{gh_pr(363)}})
90+
- Change type of xcoordinates and ycoordinates in Lateral class from int to float ({{gh_pr(351)}})
91+
- Fix that single structure in StructureModel class is correctly converted to a list ({{gh_pr(352)}})
92+
- Ensure poly files can be saved ({{gh_pr(344)}})
93+
- write correct branchorder to net file ({{gh_pr(335)}})
94+
- add zdatum vertical position type ({{gh_pr(324)}})
95+
- parse vertical positions to list ({{gh_pr(325)}})
96+
- make `has_z_values` parameter optional in `polyfile.parser.read_polyfile` ({{gh_pr(312)}})
97+
- Remove unnessary indent in .bc datablocks ({{gh_pr(304)}})
98+
- Fix the types of 4 fields in the MDU file ({{gh_pr(283)}})
99+
100+
### Refactor
101+
- Location specification root validator ({{gh_pr(347)}})
102+
103+
## 0.3.0 (2022-07-11)
104+
105+
### Fix
106+
107+
- Add water level location validation DamBreaks
108+
- allow empty file paths in the .fnm file
109+
- Add modeltype 21 to RR node for open water precipitation/evaporation ({{gh_pr(261)}})
110+
- **filemodel**: ResolveRelativeMode is incorrectly set when reading a model with 'pathsRelativeToParent' set to false ({{gh_pr(259)}})
111+
112+
### Feat
113+
114+
- **network**: additional mesh funcs dhydamo
115+
- support .bc files and more in lateral discharge ({{gh_pr(244)}})
116+
- add support for observation point ini file ({{gh_pr(236)}})
117+
- support .bc files and more in lateral discharge
118+
119+
### Refactor
120+
121+
- **rr**: place all RR-related code+tests in own rr subpackage ({{gh_pr(235)}})
122+
- remove dead code of _process_edges_for_branch
123+
124+
## 0.2.1 (2022-03-15)
125+
126+
### Fix
127+
128+
- **parser**: correctly parse model input fields with leading digits, such as 1D2DLinkFile.
129+
- **parser**: allow empty friction specification in all crossdef types. ({{gh_pr(206)}}).
130+
131+
## 0.2.0 (2021-12-17)
132+
### Added
133+
* RainfallRunoff files: [NodeFile][hydrolib.core.io.rr.topology.models.NodeFile] ({{gh_issue(138)}})
134+
and [LinkFile][hydrolib.core.io.rr.topology.models.LinkFile] ({{gh_issue(140)}})
135+
* D-Flow FM files:
136+
* Initial field files: [IniFieldModel][hydrolib.core.io.inifield.models.IniFieldModel],
137+
also added 1D Field INI format: [OneDFieldModel][hydrolib.core.io.onedfield.models.OneDFieldModel] ({{gh_issue(119)}}).
138+
* 1D Roughness INI files: [FrictionModel][hydrolib.core.io.friction.models.FrictionModel] ({{gh_issue(118)}}).
139+
* Storage node files: [StorageNodeModel][hydrolib.core.io.storagenode.models.StorageNodeModel] ({{gh_issue(131)}}).
140+
* General structure: [GeneralStructure][hydrolib.core.io.structure.models.GeneralStructure] ({{gh_issue(79)}}).
141+
* Many additions to the [API documentation](reference/api.md).
142+
143+
144+
### Changed
145+
* All classes that have fields with "keyword values" (such as `frictionType = WhiteColebrook`) now use Enum classes for those values.
146+
See for example [FrictionType][hydrolib.core.io.friction.models.FrictionType] and [FlowDirection][hydrolib.core.io.structure.models.FlowDirection]
147+
({{gh_issue(98)}})
148+
* All crosssection definition type now supported as subclasses of
149+
[CrossSection][hydrolib.core.io.crosssection.models.CrossSectionDefinition] ({{gh_issue(117)}})
150+
* Cross section definition and location classes have been moved from `hydrolib.core.io.ini.models`
151+
to `hydrolib.core.io.crosssection.models`. ({{gh_issue(149)}})
152+
* Changed behavior for file paths in saved files ({{gh_issue(96)}}).
153+
More information about: [technical background](topics/loadsave.md) and a [tutorial](tutorials/loading_and_saving_a_model.md).
154+
155+
156+
### Fixed
157+
* Too strict validation of optional fields in culvert ({{gh_issue(75)}}), pump ({{gh_issue(76)}}),
158+
weir ({{gh_issue(77)}}), orifice ({{gh_issue(78)}}).
159+
* Floating point parser breaks reading/writing of keyword UnifFrictCoef1D2D ({{gh_issue(103)}})
160+
* DIMR config has invalid control element for a single component model ({{gh_issue(127)}})
161+
* DataBlockINIBasedModel.datablock should also support strings (astronomic in .bc files) ({{gh_issue(137)}})
162+
* Saving .bc files incorrectly writes repeated key names as a semicolon-separated list ({{gh_issue(101)}})
163+
* Do not write absolute file paths to file ({{gh_issue(96)}})
164+
165+
## 0.1.5 (2021-11-02)
166+
167+
## 0.1.4 (2021-11-02)
168+
169+
## 0.1.3 (2021-08-05)
170+
171+
### Fix
172+
173+
- netcdf serialization path.
174+
175+
## 0.1.2 (2021-08-05)
176+
177+
### Fix
178+
179+
- **test_version**: Fix updated version
180+
181+
## 0.1.1 (2021-08-05)
182+
183+
### Fix
184+
185+
- **NetworkModel**: Fix default init of Network within NetworkModel

hydrolib/core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.4.1"
1+
__version__ = "0.5.0"

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "hydrolib-core"
3-
version = "0.4.1"
3+
version = "0.5.0"
44
description = "Python wrappers around D-HYDRO Suite."
55
authors = ["Deltares"]
66
license = "MIT"
@@ -50,7 +50,7 @@ ipykernel = "^6.15.0"
5050

5151
[tool.commitizen]
5252
name = "cz_conventional_commits"
53-
version = "0.4.1"
53+
version = "0.5.0"
5454
tag_format = "$version"
5555
version_files = [
5656
"hydrolib/core/__init__.py",

tests/data/reference/dimr/test_serialize.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<dimrConfig xmlns="http://schemas.deltares.nl/dimr" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.deltares.nl/dimr http://content.oss.deltares.nl/schemas/dimr-1.3.xsd">
33
<documentation>
44
<fileVersion>1.3</fileVersion>
5-
<createdBy>hydrolib-core 0.4.1</createdBy>
5+
<createdBy>hydrolib-core 0.5.0</createdBy>
66
<creationDate>2020-03-17T10:02:49.4520672Z</creationDate>
77
</documentation>
88
<control>

tests/data/reference/model/test_dimr_model_save.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<dimrConfig xmlns="http://schemas.deltares.nl/dimr" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.deltares.nl/dimr http://content.oss.deltares.nl/schemas/dimr-1.3.xsd">
33
<documentation>
44
<fileVersion>1.3</fileVersion>
5-
<createdBy>hydrolib-core 0.4.1</createdBy>
5+
<createdBy>hydrolib-core 0.5.0</createdBy>
66
<creationDate>2021-07-29T12:45:00</creationDate>
77
</documentation>
88
<control>

0 commit comments

Comments
 (0)