Skip to content

Commit 259690a

Browse files
committed
2nd sum doesn't seem to make a difference
1 parent 3309c48 commit 259690a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

enacts/onset/maproom.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def onset_plots(
405405
lng = marker_pos[1]
406406
try:
407407
precip = pingrid.sel_snap(rr_mrg.precip, lat, lng)
408-
isnan = np.isnan(precip).sum().sum()
408+
isnan = np.isnan(precip).sum()
409409
if isnan > 0:
410410
error_fig = pingrid.error_fig(error_msg="Data missing at this location")
411411
germ_sentence = ""
@@ -533,7 +533,7 @@ def cess_plots(
533533
lng = marker_pos[1]
534534
try:
535535
precip = pingrid.sel_snap(rr_mrg.precip, lat, lng)
536-
isnan = np.isnan(precip).sum().sum()
536+
isnan = np.isnan(precip).sum()
537537
if isnan > 0:
538538
error_fig = pingrid.error_fig(error_msg="Data missing at this location")
539539
return error_fig, error_fig, tab_style
@@ -645,7 +645,7 @@ def length_plots(
645645
lng = marker_pos[1]
646646
try:
647647
precip = pingrid.sel_snap(rr_mrg.precip, lat, lng)
648-
isnan = np.isnan(precip).sum().sum()
648+
isnan = np.isnan(precip).sum()
649649
if isnan > 0:
650650
error_fig = pingrid.error_fig(error_msg="Data missing at this location")
651651
germ_sentence = ""

enacts/wat_bal/maproom_monit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def wat_bal_plots(
352352
precip = precip.where(precip["T"] >= p_d, drop=True)
353353
try:
354354
precip = pingrid.sel_snap(precip, lat, lng)
355-
isnan = np.isnan(precip).sum().sum()
355+
isnan = np.isnan(precip).sum()
356356
if isnan > 0:
357357
error_fig = pingrid.error_fig(error_msg="Data missing at this location")
358358
return error_fig

0 commit comments

Comments
 (0)