Skip to content

Commit

Permalink
[DONE] Add manhole indicator field. (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
martijn-siemerink authored Dec 4, 2023
1 parent d18da88 commit 4c05358
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Changelog of threedigrid-builder
1.12.2 (unreleased)
-------------------

- Nothing changed yet.
- Add manhole_indicator field to gridadmin for future export.


1.12.1 (2023-08-14)
Expand Down
1 change: 1 addition & 0 deletions threedigrid_builder/grid/connection_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def get_nodes(self, node_id_counter):
storage_area=self.storage_area,
display_name=self.display_name,
zoom_category=self.zoom_category,
manhole_indicator=self.manhole_indicator,
has_groundwater_exchange=self.has_groundwater_exchange,
)

Expand Down
1 change: 1 addition & 0 deletions threedigrid_builder/interface/gridadmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ def write_nodes(self, nodes, group_name="nodes"):
group, "display_name", to_bytes_array(nodes.display_name, 64)
)
self.write_dataset(group, "zoom_category", nodes.zoom_category)
self.write_dataset(group, "manhole_id", nodes.manhole_id)
self.write_dataset(group, "manhole_indicator", nodes.manhole_indicator)
self.write_dataset(group, "shape", to_bytes_array(nodes.shape, 4))
self.write_dataset(group, "drain_level", nodes.drain_level)
Expand Down

0 comments on commit 4c05358

Please sign in to comment.