Skip to content

Commit

Permalink
Update recipe.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jbusecke authored Nov 6, 2024
1 parent d3cbe35 commit 1512078
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion feedstock/recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,10 @@ async def get_recipe_inputs():
# to accomodate single file we cannot parse target chunks (https://github.com/pangeo-forge/pangeo-forge-recipes/issues/275)
if len(urls) > 1:
chunk_fn = dynamic_chunking_func
combine_dims = pattern.combine_dim_keys
else:
chunk_fn = None
combine_dims = []

recipes[iid] = (
f"Creating {iid}" >> beam.Create(pattern.items())
Expand All @@ -183,7 +185,7 @@ async def get_recipe_inputs():
| Preprocessor()
| StoreToZarr(
store_name=f"{iid}.zarr",
combine_dims=pattern.combine_dim_keys,
combine_dims=combine_dims,
dynamic_chunking_fn=chunk_fn,
)
| InjectAttrs({"pangeo_forge_api_responses": data})
Expand Down

0 comments on commit 1512078

Please sign in to comment.