From 83be4e64357de2a34524081b4c85df27f79ebc08 Mon Sep 17 00:00:00 2001 From: Jared Ortiz Angulo Date: Fri, 22 Aug 2025 12:07:24 +0200 Subject: [PATCH] [JOAC] add working code to schism wrapper --- bluemath_tk/wrappers/schism/schism_wrapper.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bluemath_tk/wrappers/schism/schism_wrapper.py b/bluemath_tk/wrappers/schism/schism_wrapper.py index 7fca015..bf57302 100644 --- a/bluemath_tk/wrappers/schism/schism_wrapper.py +++ b/bluemath_tk/wrappers/schism/schism_wrapper.py @@ -223,6 +223,8 @@ def generate_time_series( The case directory. """ + print(case_context["case_num"]) + # Calculate the start and end times in seconds qp = case_context.get("Qp") qb = case_context.get("Qb") @@ -277,6 +279,8 @@ def generate_time_series( t = np.arange(0, timef * 3600, int_min) # interpolamos caudal a esa resolución temporal f = interp1d(hidro_seg, hidro_Qp, kind="linear") + # f = interp1d(hidro_seg, hidro_Qp, kind="linear", fill_value="extrapolate", bounds_error=False) # CAMBIADO!!!! + t2 = np.arange(0, np.max(hidro_seg), int_min) hidro_Qp_5_1 = f(t2) t3 = np.max(t) - np.max(t2)