Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make FSSpecTarget be 'pathlike' #474

Merged
merged 1 commit into from
Jan 17, 2023

Conversation

yuvipanda
Copy link
Contributor

The goal here is for recipe authors to be able to
pass strings to target parameters of StoreToZarr to specify where the data should be for this specific recipe, and we can inject the prefix with pangeo-forge-runner.

The primary use case is when we have a dictionary of recipes being returned from a single recipe file. The name of the recipe is unfortunately not really available during AST parsing, so the suffix the data should be put in needs to be explicitly specified.

The goal here is for recipe authors to be able to
pass *strings* to `target` parameters of StoreToZarr to specify
where the data should be for this specific recipe, and we can
inject the prefix with pangeo-forge-runner.

The primary use case is when we have a dictionary of recipes
being returned from a single recipe file. The *name* of the recipe
is unfortunately not really available during AST parsing, so the
suffix the data should be put in needs to be explicitly specified.
@yuvipanda yuvipanda requested a review from rabernat January 16, 2023 23:40
Copy link
Contributor

@rabernat rabernat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No objections to adding this method. But where is it actually used? I just see the __truediv__ method and its test.

Edit: ok I assume it is used by Runner.

@rabernat rabernat merged commit 241ca87 into pangeo-forge:beam-refactor Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants