Skip to content

Commit

Permalink
Change the ids, something is weird
Browse files Browse the repository at this point in the history
  • Loading branch information
jbusecke committed Apr 9, 2024
1 parent 732a455 commit 0db120c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
17 changes: 5 additions & 12 deletions feedstock/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,14 @@ title: "LEAP Data Library Prototype"
description: >
A prototype test for the LEAP Data Library refactor
recipes:
- id: "proto-a"
- id: "large"
object: "recipe:proto_a"

- id: "proto-b"
object: "recipe:proto_b"

- id: "large"
object: "recipe:large"
provenance:
providers:
- name: "Zenodo"
description: "Zenodo"
roles:
- host
url: https://zenodo.org/record/7761881#.ZFv9OS-B30p
- name: "Nathaniel et al."
description: "Authors of MetaFlux: Meta-learning global carbon fluxes from sparse spatiotemporal observations"
- name: "Julius"
description: "Just a guy testing some recipes. Nothing to see here."
roles:
- producer
- licensor
Expand Down
8 changes: 4 additions & 4 deletions feedstock/recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ def expand(self, pcoll: beam.PCollection[zarr.storage.FSStore]) -> beam.PCollect
pattern_b = pattern_from_file_sequence(input_urls_b, concat_dim='time')

# very small recipe
proto_a = (
small = (
beam.Create(pattern_a.items())
| OpenURLWithFSSpec()
| OpenWithXarray()
| StoreToZarr(
store_name='proto-a.zarr',
store_name='small.zarr',
#FIXME: This is brittle. it needs to be named exactly like in meta.yaml...
# Can we inject this in the same way as the root?
# Maybe its better to find another way and avoid injections entirely...
Expand All @@ -127,12 +127,12 @@ def expand(self, pcoll: beam.PCollection[zarr.storage.FSStore]) -> beam.PCollect
)

# larger recipe
proto_b = (
large = (
beam.Create(pattern_b.items())
| OpenURLWithFSSpec()
| OpenWithXarray()
| StoreToZarr(
store_name='proto-b.zarr',
store_name='large.zarr',
combine_dims=pattern_b.combine_dim_keys,
)
|InjectAttrs(injection_attrs)
Expand Down

0 comments on commit 0db120c

Please sign in to comment.