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

Grib Reference Recipe #438

Closed

Conversation

norlandrhagen
Copy link
Contributor

@norlandrhagen norlandrhagen commented Nov 4, 2022

PR building on #390. Credit to darothen.
Based on discussion from #387.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@norlandrhagen
Copy link
Contributor Author

norlandrhagen commented Nov 4, 2022

TODO:

  • Add GribReferenceRecipe testing.
  • Add documentation for GribReferenceRecipe example.

@norlandrhagen norlandrhagen added the recipe enhancement Solving this requires us to enhance the recipe classes label Nov 7, 2022
@norlandrhagen norlandrhagen marked this pull request as ready for review November 10, 2022 18:59
@andersy005
Copy link
Member

@norlandrhagen, it's my understanding that the tests are failing due to this line

rec = RecipeClass(file_pattern, open_input_with_kerchunk=True, **kwargs)

setting open_input_with_kerchunk=False seems to be one solution but i don't quite understand why this stopped working in this PR. Perhaps that @cisaacstern has some insights since he is the last person to have touched this part of the codebase :)

@cisaacstern
Copy link
Member

setting open_input_with_kerchunk=False seems to be one solution

IIUC based on the docstring

"""Same as above, but use fsspec references for opening the files."""

This is explicitly testing open_input_with_kerchunk=True so setting that to False is not the solution here.

but i don't quite understand why this stopped working in this PR

I don't have an immediate answer but questions that come to mind:

  1. What was the last PR where this test passed?
  2. Has the version of kerchunk used in CI changed since then?
  3. Has anything that touches open_input_with_kerchunk changed since then?

@andersy005
Copy link
Member

It's likely this PR isn't the culprit because

Has anything that touches open_input_with_kerchunk changed since then?

I doubt it. It appears the latest merge into main succeeded: https://github.com/pangeo-forge/pangeo-forge-recipes/actions/runs/3415831179/jobs/5685406660

@cisaacstern
Copy link
Member

Per @norlandrhagen and my discussion this afternoon:

  • beam-refactor remains on the near horizon, so any work that goes into this should be (a) as narrowly-scoped as possible; and (b) done with the awareness that it will need to be re-done before too long.
  • The basics of what's required to make this work are simple enough that I believe it's worth continuing to pursue now, given that Raphael is interested (and it has relevance to his work), and he/we are open to using it as a learning experience to entrain him further into pangeo-forge-recipes development, and inform what will be required for a similar feature for the beam-refactor.
  • Re: design, a mergable version of this should follow @rabernat's suggestion in add GRIB2ReferenceRecipe  #387 (comment), to use a single ReferenceRecipe object, which can infer file type from the user-passed file_pattern.file_type (as does XarrayZarrRecipe).
  • Re: testing, Raphael is going to run the tests against master locally, and assuming they work, may simply start a new PR from there.

Thanks Raphael for your engagement on this!

@norlandrhagen norlandrhagen mentioned this pull request Dec 13, 2022
@norlandrhagen
Copy link
Contributor Author

norlandrhagen commented Jan 11, 2023

Replaced with #452

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
recipe enhancement Solving this requires us to enhance the recipe classes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants