Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
daanvaningen committed Dec 7, 2023
1 parent a1101f0 commit 3112f21
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Changelog of threedigrid-builder

- Add manhole_indicator field to gridadmin for future export.

- Reduce memory use by reducing DEM mask datatype to int8.


1.12.1 (2023-08-14)
-------------------
Expand Down
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ add_custom_command(
-m "numpy.f2py"
-m ${f2py_module_name}
--lower
--verbose
${fortran_src_file}
#only: make_quadtree set_2d_computational_nodes_lines
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
if sys.platform == "win32":
cmake_args = ["-G", "MSYS Makefiles", "-DCMAKE_GNUtoMS=ON"]
else:
cmake_args = ["-DF2PY_REPORT_ON_ARRAY_COPY=1", "-DCMAKE_BUILD_TYPE=DEBUG"]
cmake_args = []

long_description = open("README.rst").read()

Expand Down
3 changes: 1 addition & 2 deletions threedigrid_builder/interface/raster_gdal.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,13 @@ def __exit__(self, *args, **kwargs):
def read(self):
width, height, bbox, mask = self._create_area_arr_from_dem()

data = {
return {
"pixel_size": self.pixel_size,
"width": width,
"height": height,
"bbox": bbox,
"area_mask": np.flipud(mask).T.astype(dtype=np.int8, copy=True, order="F"),
}
return data

def _create_area_arr_from_dem(self):
xpixel, _, xmin, _, ypixel, ymax = self.transform
Expand Down

0 comments on commit 3112f21

Please sign in to comment.