Skip to content
Snippets Groups Projects
Commit ee7b2565 authored by David Schäfer's avatar David Schäfer
Browse files

reduce the number of chunk copies

parent 0cb5d0df
No related branches found
No related tags found
No related merge requests found
......@@ -84,15 +84,16 @@ def runner(meta, flagger, data, flags=None, nodata=np.nan):
if varname not in data and varname not in flags:
continue
dchunk = data.loc[start_date:end_date].copy()
dchunk = data.loc[start_date:end_date]
if dchunk.empty:
continue
fchunk = flags.loc[start_date:end_date].copy()
fchunk = flags.loc[start_date:end_date]
try:
dchunk, ffchunk = flagDispatch(func_name,
dchunk, fchunk, varname,
dchunk, fchunk.copy(),
varname,
flagger, nodata=nodata,
**flag_params)
except NameError:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment