hydxlib 1.7.7.dev0__tar.gz → 1.7.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. {hydxlib-1.7.7.dev0 → hydxlib-1.7.9}/CHANGES.rst +13 -1
  2. {hydxlib-1.7.7.dev0/hydxlib.egg-info → hydxlib-1.7.9}/PKG-INFO +14 -2
  3. hydxlib-1.7.9/hydxlib/__init__.py +3 -0
  4. {hydxlib-1.7.7.dev0 → hydxlib-1.7.9}/hydxlib/scripts.py +0 -1
  5. {hydxlib-1.7.7.dev0 → hydxlib-1.7.9}/hydxlib/tests/test_threedi.py +1 -1
  6. {hydxlib-1.7.7.dev0 → hydxlib-1.7.9}/hydxlib/threedi.py +11 -2
  7. {hydxlib-1.7.7.dev0 → hydxlib-1.7.9/hydxlib.egg-info}/PKG-INFO +14 -2
  8. hydxlib-1.7.7.dev0/hydxlib/__init__.py +0 -3
  9. {hydxlib-1.7.7.dev0 → hydxlib-1.7.9}/LICENSE +0 -0
  10. {hydxlib-1.7.7.dev0 → hydxlib-1.7.9}/MANIFEST.in +0 -0
  11. {hydxlib-1.7.7.dev0 → hydxlib-1.7.9}/README.rst +0 -0
  12. {hydxlib-1.7.7.dev0 → hydxlib-1.7.9}/hydxlib/exporter.py +0 -0
  13. {hydxlib-1.7.7.dev0 → hydxlib-1.7.9}/hydxlib/hydx.py +0 -0
  14. {hydxlib-1.7.7.dev0 → hydxlib-1.7.9}/hydxlib/importer.py +0 -0
  15. {hydxlib-1.7.7.dev0 → hydxlib-1.7.9}/hydxlib/tests/__init__.py +0 -0
  16. {hydxlib-1.7.7.dev0 → hydxlib-1.7.9}/hydxlib/tests/conftest.py +0 -0
  17. {hydxlib-1.7.7.dev0 → hydxlib-1.7.9}/hydxlib/tests/test_exporter.py +0 -0
  18. {hydxlib-1.7.7.dev0 → hydxlib-1.7.9}/hydxlib/tests/test_hydx.py +0 -0
  19. {hydxlib-1.7.7.dev0 → hydxlib-1.7.9}/hydxlib/tests/test_importer.py +0 -0
  20. {hydxlib-1.7.7.dev0 → hydxlib-1.7.9}/hydxlib/tests/test_scripts.py +0 -0
  21. {hydxlib-1.7.7.dev0 → hydxlib-1.7.9}/hydxlib.egg-info/SOURCES.txt +0 -0
  22. {hydxlib-1.7.7.dev0 → hydxlib-1.7.9}/hydxlib.egg-info/dependency_links.txt +0 -0
  23. {hydxlib-1.7.7.dev0 → hydxlib-1.7.9}/hydxlib.egg-info/entry_points.txt +0 -0
  24. {hydxlib-1.7.7.dev0 → hydxlib-1.7.9}/hydxlib.egg-info/not-zip-safe +0 -0
  25. {hydxlib-1.7.7.dev0 → hydxlib-1.7.9}/hydxlib.egg-info/requires.txt +0 -0
  26. {hydxlib-1.7.7.dev0 → hydxlib-1.7.9}/hydxlib.egg-info/top_level.txt +0 -0
  27. {hydxlib-1.7.7.dev0 → hydxlib-1.7.9}/setup.cfg +0 -0
  28. {hydxlib-1.7.7.dev0 → hydxlib-1.7.9}/setup.py +0 -0
@@ -1,7 +1,19 @@
1
1
  Changelog of hydxlib
2
2
  ===================================================
3
3
 
4
- 1.7.7 (unreleased)
4
+ 1.7.9 (2026-09-30)
5
+ ------------------
6
+
7
+ - Fix bug in run-hydxlib
8
+
9
+
10
+ 1.7.8 (2026-07-02)
11
+ ------------------
12
+
13
+ - Convert discharge_capacity to m3/s (https://docs.ranawaterintelligence.com/d_1d_objects.html#id31)
14
+
15
+
16
+ 1.7.7 (2026-06-09)
5
17
  ------------------
6
18
 
7
19
  - Set weir cross-section shape to closed rectangle; set cross_section_height from OVS_VOH (mm to m) when present (nens/rana#4429).
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hydxlib
3
- Version: 1.7.7.dev0
3
+ Version: 1.7.9
4
4
  Summary: Importer and Exporter for GWSW
5
5
  Home-page: https://github.com/nens/hydxlib
6
6
  Author: Nelen & Schuurmans
@@ -104,7 +104,19 @@ install `pre-commit`::
104
104
  Changelog of hydxlib
105
105
  ===================================================
106
106
 
107
- 1.7.7 (unreleased)
107
+ 1.7.9 (2026-09-30)
108
+ ------------------
109
+
110
+ - Fix bug in run-hydxlib
111
+
112
+
113
+ 1.7.8 (2026-07-02)
114
+ ------------------
115
+
116
+ - Convert discharge_capacity to m3/s (https://docs.ranawaterintelligence.com/d_1d_objects.html#id31)
117
+
118
+
119
+ 1.7.7 (2026-06-09)
108
120
  ------------------
109
121
 
110
122
  - Set weir cross-section shape to closed rectangle; set cross_section_height from OVS_VOH (mm to m) when present (nens/rana#4429).
@@ -0,0 +1,3 @@
1
+ # fmt: off
2
+ __version__ = '1.7.9'
3
+ # fmt: on
@@ -117,7 +117,6 @@ def main():
117
117
 
118
118
  try:
119
119
  run_import_export(
120
- options.export_type,
121
120
  options.hydx_path[0],
122
121
  options.out_path[0],
123
122
  )
@@ -203,7 +203,7 @@ def test_import_hydx(hydx):
203
203
  "crest_type": 4,
204
204
  "crest_level": 0.0,
205
205
  "cross_section_code": "PVC400",
206
- "discharge_capacity": 4.00,
206
+ "discharge_capacity": round(4.00 / 3600, 5),
207
207
  }
208
208
 
209
209
 
@@ -211,7 +211,7 @@ def get_cross_section_details(hydx_profile, record_code, name_for_logging):
211
211
  height = hydx_profile.tabulatedhoogte
212
212
 
213
213
  shape = SHAPE_MAPPING.get(hydx_profile.vormprofiel)
214
- if shape is None and vormprofiel not in SHAPE_MAPPING:
214
+ if shape is None:
215
215
  # Unknown/missing shape: fall back to scalar mm fields for width/height
216
216
  width = transform_unit_mm_to_m(hydx_profile.breedte_diameterprofiel)
217
217
  height = transform_unit_mm_to_m(hydx_profile.hoogteprofiel)
@@ -542,7 +542,9 @@ class Threedi:
542
542
  "sewerage": True,
543
543
  "crest_type": CrestType.SHORT_CRESTED.value,
544
544
  "crest_level": hydx_structure.niveaubinnenonderkantprofiel,
545
- "discharge_capacity": hydx_structure.maximalecapaciteitdoorlaat,
545
+ "discharge_capacity": transform_discharge_capacity_to_m3s(
546
+ hydx_structure.maximalecapaciteitdoorlaat
547
+ ),
546
548
  }
547
549
 
548
550
  self.orifices.append(orifice)
@@ -794,6 +796,13 @@ def check_if_element_is_created_with_same_code(
794
796
  )
795
797
 
796
798
 
799
+ def transform_discharge_capacity_to_m3s(capacity):
800
+ if capacity is not None:
801
+ return round(float(capacity) / 3600, 5)
802
+ else:
803
+ return None
804
+
805
+
797
806
  def transform_capacity_to_ls(capacity):
798
807
  if capacity is not None:
799
808
  return round(float(capacity) / 3.6, 5)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hydxlib
3
- Version: 1.7.7.dev0
3
+ Version: 1.7.9
4
4
  Summary: Importer and Exporter for GWSW
5
5
  Home-page: https://github.com/nens/hydxlib
6
6
  Author: Nelen & Schuurmans
@@ -104,7 +104,19 @@ install `pre-commit`::
104
104
  Changelog of hydxlib
105
105
  ===================================================
106
106
 
107
- 1.7.7 (unreleased)
107
+ 1.7.9 (2026-09-30)
108
+ ------------------
109
+
110
+ - Fix bug in run-hydxlib
111
+
112
+
113
+ 1.7.8 (2026-07-02)
114
+ ------------------
115
+
116
+ - Convert discharge_capacity to m3/s (https://docs.ranawaterintelligence.com/d_1d_objects.html#id31)
117
+
118
+
119
+ 1.7.7 (2026-06-09)
108
120
  ------------------
109
121
 
110
122
  - Set weir cross-section shape to closed rectangle; set cross_section_height from OVS_VOH (mm to m) when present (nens/rana#4429).
@@ -1,3 +0,0 @@
1
- # fmt: off
2
- __version__ = '1.7.7.dev0'
3
- # fmt: on
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes