ENH: allows any iterator to be the return of load_adjusted_arrays

This commit is contained in:
llllllllll
2015-10-19 16:35:02 -04:00
parent b032b68a43
commit 8f661387df
+2 -2
View File
@@ -339,9 +339,9 @@ class SimplePipelineEngine(object):
key=lambda t: t.dataset
)
loader = get_loader(term)
loaded = loader.load_adjusted_array(
loaded = tuple(loader.load_adjusted_array(
to_load, mask_dates, assets, mask,
)
))
assert len(to_load) == len(loaded)
for loaded_term, adj_array in zip_longest(to_load, loaded):
workspace[loaded_term] = adj_array