Skip to content

Commit 83be4e6

Browse files
committed
[JOAC] add working code to schism wrapper
1 parent 73ac0ea commit 83be4e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bluemath_tk/wrappers/schism/schism_wrapper.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ def generate_time_series(
223223
The case directory.
224224
"""
225225

226+
print(case_context["case_num"])
227+
226228
# Calculate the start and end times in seconds
227229
qp = case_context.get("Qp")
228230
qb = case_context.get("Qb")
@@ -277,6 +279,8 @@ def generate_time_series(
277279
t = np.arange(0, timef * 3600, int_min)
278280
# interpolamos caudal a esa resolución temporal
279281
f = interp1d(hidro_seg, hidro_Qp, kind="linear")
282+
# f = interp1d(hidro_seg, hidro_Qp, kind="linear", fill_value="extrapolate", bounds_error=False) # CAMBIADO!!!!
283+
280284
t2 = np.arange(0, np.max(hidro_seg), int_min)
281285
hidro_Qp_5_1 = f(t2)
282286
t3 = np.max(t) - np.max(t2)

0 commit comments

Comments
 (0)