-
Notifications
You must be signed in to change notification settings - Fork 54
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
cmip6 tutorial rewrite #125
cmip6 tutorial rewrite #125
Conversation
A-ha, now realizing that this pangeo-forge-recipes/pangeo_forge_recipes/patterns.py Lines 102 to 105 in b4199f7
I am not seeing the expected behavior at the moment, however. (Getting an empty list.) So I'll look into that now and get back with any further questions on this thread if/as they arise. Also, noting for posterity that my statement above:
Should be corrected to: "the |
Ryan found the root cause of the issue described above. One of the imports in the notebook still read: from pangeo_forge.patterns import FilePattern Now that the package name has changed, this needed to be updated to: from pangeo_forge_recipes.patterns import FilePattern Making this change resolved the file pattern issue and allowed me to instantiate the recipe without raising any errors.
Working now on a |
I believe this is now ready to merge and close #115. I resolved the credentials issue by specifying Note that cell 6 raises a |
|
Thanks for weighing in, @martindurant. That makes sense. Perhaps the last time this notebook was run with credentials set as environment variables, or at some other layer not captured in my development environment. |
FYI I just authorized reviewnb for this org, which makes it a lot easier to review notebook diffs. Your PR is here: https://app.reviewnb.com/pangeo-forge/pangeo-forge-recipes/pull/125/ In the future it will start posting automatically on PR with notebook changes. |
@@ -62,25 +62,25 @@ | |||
"output_type": "stream", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The correct way to link to another page is not via a direct url but a myst markdown directive. I believe this should be {doc}file_patterns
.
Reply via ReviewNB
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😅 Actually could not figure out how to do this, so I just removed all of the docs urls, in case you want to merge over the weekend. We can revisit links Monday if desired (I should learn how to do this eventually), but actually I think this notebook reads fine without them.
@@ -62,25 +62,25 @@ | |||
"output_type": "stream", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as above re: my myst directive confusion
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
A draft PR, which will close #115 when complete.
@rabernat, this rewrite is currently failing on what is now cell 21; rendered static notebook here:
https://github.com/cisaacstern/pangeo-forge-recipes/blob/cmip6-tutorial-rewrite/docs/tutorials/cmip6-recipe.ipynb
It seems that the
__post_init__
ofXarrayZarrRecipe
is expecting myConcatDim
object to be in the file pattern's.concat_dims
attribute. As demonstrated by cell 22 of the rendered static notebook, however, this object is actually ending up in an attribute of the file pattern named.combine_dims
.Is it possible that this is a bug of the refactoring? Or have I overlooked something on the user side?
The traceback is in the static notebook linked above, but pasting as plain text below, for reference: