From 87129c21702ce69bbb32e7ca9fd5c8ab67b10fb6 Mon Sep 17 00:00:00 2001 From: James McCreight Date: Tue, 12 Nov 2024 09:36:43 -0700 Subject: [PATCH] fix bad merge some more --- pywatershed/hydrology/prms_canopy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pywatershed/hydrology/prms_canopy.py b/pywatershed/hydrology/prms_canopy.py index 28ed197a..91a9bd38 100644 --- a/pywatershed/hydrology/prms_canopy.py +++ b/pywatershed/hydrology/prms_canopy.py @@ -476,7 +476,9 @@ def _calculate_numpy( # python/numba. intcp_form = np.full_like(hru_rain, -9999, dtype="int32") - for i in prange(nhru): + + for aa in prange(nactive_hrus): + i = active_hrus[aa] netrain = hru_rain[i] netsnow = hru_snow[i]