From 3acbd8d304f4f6e77d992611ebf290005e24f5d8 Mon Sep 17 00:00:00 2001 From: andrewbrettin <40894751+andrewbrettin@users.noreply.github.com> Date: Fri, 30 Oct 2020 10:24:57 -0500 Subject: [PATCH] Update tutorial.ipynb Correct me if I'm wrong, but I think the function call in the rechunker API requires temp_store to be a keyword arg if 'target_opitions' is unspecified? --- docs/tutorial.ipynb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/tutorial.ipynb b/docs/tutorial.ipynb index 64bbf4d..61bd936 100644 --- a/docs/tutorial.ipynb +++ b/docs/tutorial.ipynb @@ -458,7 +458,7 @@ "target_store = 'air_rechunked.zarr'\n", "temp_store = 'air_rechunked-tmp.zarr'\n", "\n", - "array_plan = rechunk(source_array, target_chunks, max_mem, target_store, temp_store)\n", + "array_plan = rechunk(source_array, target_chunks, max_mem, target_store, temp_store=temp_store)\n", "array_plan" ] }, @@ -601,7 +601,7 @@ "\n", "# need to remove the existing stores or it won't work\n", "!rm -rf air_rechunked.zarr air_rechunked-tmp.zarr\n", - "array_plan = rechunk(source_array, target_chunks_dict, max_mem, target_store, temp_store)\n", + "array_plan = rechunk(source_array, target_chunks_dict, max_mem, target_store, temp_store=temp_store)\n", "array_plan" ] }, @@ -989,7 +989,7 @@ "target_store = 'group_rechunked.zarr'\n", "temp_store = 'group_rechunked-tmp.zarr'\n", "\n", - "array_plan = rechunk(source_group, target_chunks, max_mem, target_store, temp_store)\n", + "array_plan = rechunk(source_group, target_chunks, max_mem, target_store, temp_store=temp_store)\n", "array_plan" ] }, @@ -1356,7 +1356,7 @@ "store_tmp = gcs.get_mapper('pangeo-scratch/rabernat/rechunker_demo/temp.zarr')\n", "store_target = gcs.get_mapper('pangeo-scratch/rabernat/rechunker_demo/target.zarr')\n", "r = rechunk(source_array, target_chunks, max_mem,\n", - " store_target, store_tmp)\n", + " store_target, temp_store=store_tmp)\n", "r" ] },