Skip to content
This repository was archived by the owner on Jan 6, 2022. It is now read-only.

Commit f8acf22

Browse files
committed
fixed bug when using --partial=true
1 parent 5f9efc2 commit f8acf22

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

gridmetetl/etl.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -370,12 +370,12 @@ def run_weights(self):
370370
nanvar = True
371371

372372
if nanvar:
373-
d_tmax[i] = np_get_wval(d_flt_tmax[tgid] - 273.15, tgid, tw, tindex[i])
374-
d_tmin[i] = np_get_wval(d_flt_tmin[tgid] - 273.15, tgid, tw, tindex[i])
375-
d_ppt[i] = np_get_wval(d_flt_ppt[tgid], tgid, tw, tindex[i])
376-
d_rhmax[i] = np_get_wval(d_flt_rhmax[tgid], tgid, tw, tindex[i])
377-
d_rhmin[i] = np_get_wval(d_flt_rhmin[tgid], tgid, tw, tindex[i])
378-
d_ws[i] = np_get_wval(d_flt_ws[tgid], tgid, tw, tindex[i])
373+
d_tmax[i] = np_get_wval(d_flt_tmax[tgid] - 273.15, tw, tindex[i])
374+
d_tmin[i] = np_get_wval(d_flt_tmin[tgid] - 273.15, tw, tindex[i])
375+
d_ppt[i] = np_get_wval(d_flt_ppt[tgid], tw, tindex[i])
376+
d_rhmax[i] = np_get_wval(d_flt_rhmax[tgid], tw, tindex[i])
377+
d_rhmin[i] = np_get_wval(d_flt_rhmin[tgid], tw, tindex[i])
378+
d_ws[i] = np_get_wval(d_flt_ws[tgid], tw, tindex[i])
379379

380380
else:
381381
d_tmax[i] = getaverage(d_flt_tmax[tgid] - 273.15, tw)

0 commit comments

Comments
 (0)