From b6624948fbf558011b12564248fdc321c664d514 Mon Sep 17 00:00:00 2001
From: Rob Hanna - NOAA <90854818+RobHanna-NOAA@users.noreply.github.com>
Date: Wed, 24 Jul 2024 16:18:07 +0000
Subject: [PATCH] v4.5.3.1 Remove on screen warning from numpy for alpha tests
(#1233)
---
docs/CHANGELOG.md | 10 ++++++++++
tools/overlapping_inundation.py | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 7b062036..f4bc51be 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -2,6 +2,16 @@ All notable changes to this project will be documented in this file.
We follow the [Semantic Versioning 2.0.0](http://semver.org/) format.
+## v4.5.3.1 - 2024-07-24 - [PR#1233](https://github.com/NOAA-OWP/inundation-mapping/pull/1233)
+
+In a PR [1217](https://github.com/NOAA-OWP/inundation-mapping/pull/1217), which is about to be merged, it updates a bunch of python packages. One is numpy. This has triggered a very large amount of on-screen output from a new numpy warning while running `synthesize_test_cases.py`.
+
+### Changes
+- `tools\overlapping_inundation.py`: As described
+
+
+
+
## v4.5.3.0 - 2024-07-24 - [PR#1217](https://github.com/NOAA-OWP/inundation-mapping/pull/1217)
This PR rolls up a bunch of other PR's and python packages requests including:
diff --git a/tools/overlapping_inundation.py b/tools/overlapping_inundation.py
index 68a13e92..fbb1bcc5 100644
--- a/tools/overlapping_inundation.py
+++ b/tools/overlapping_inundation.py
@@ -396,7 +396,7 @@ def merge_data(
:param rst_dims: dimensions of overlapping rasters
"""
- nan_tile = np.array([np.nan]).astype(dtype)[0]
+ nan_tile = np.array([np.nan])
window_data = np.tile(float(nan_tile), [int(final_window.height), int(final_window.width)])
for data, bnds, idx in zip(rst_data, window_bnds, datasets):