From 64e217b34cb19a88bf6fb161e5be4c9431970808 Mon Sep 17 00:00:00 2001 From: Silvio Date: Mon, 15 Dec 2025 21:49:06 +0100 Subject: [PATCH] Update obstruction.py vmin test for uninitialized maybe it would be more robust to use `None` instead of these magic numbers `np.float32(+1e33)` and `np.float32(-1e33)` --- fdsreader/bndf/obstruction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdsreader/bndf/obstruction.py b/fdsreader/bndf/obstruction.py index a8aa05e..d9ba6a4 100644 --- a/fdsreader/bndf/obstruction.py +++ b/fdsreader/bndf/obstruction.py @@ -184,7 +184,7 @@ def vmin(self, orientation: Literal[-3, -2, -1, 0, 1, 2, 3] = 0) -> float: """ if orientation == 0: curr_min = np.min(self.lower_bounds) - if curr_min == 0.0: + if curr_min == np.float32(+1e33): return float(min(np.min(p.data) for p in self._patches)) return float(curr_min) else: