Skip to content

move custom accessors to advanced and add a more complex example #168

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

Merged
merged 27 commits into from
Jul 3, 2023

Conversation

JessicaS11
Copy link
Contributor

@JessicaS11 JessicaS11 commented Apr 12, 2023

This PR removes the "Accessors part 2" from the Intermediate/Tour of the Xarray Ecosystem and puts it in it's own Advanced/Accessors section of the book. This move keeps the coverage of the topics in the "ecosystem" tutorial more balanced and enables the addition of a more complex, detailed example custom accessor that encourages users to add more checks/docs to their code (because they only have to write them once). The example added was reduced from a larger custom extension (which badly needs updating!)

UPDATE: @scottyhq and @dcherian suggested making the accessor examples executable as part of this PR. Given the added example used custom local files that could not be easily pulled from existing example datasets, a third (now example 2) example - that is executable - was added. This custom accessor actually replicates the steps in this tutorial.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@JessicaS11 JessicaS11 marked this pull request as ready for review April 12, 2023 16:32
@JessicaS11 JessicaS11 requested review from scottyhq and dcherian April 12, 2023 16:32
@JessicaS11
Copy link
Contributor Author

@lsetiawan @dcherian I think this is ready to go (thanks for the first round of edits, Don!) - the QC failure is because I added a link in another tutorial to the one I've added in this PR, so the link doesn't exist yet (and thus fails the link checker). Happy to fix this if there's a better/more preferred way to include internal links.

Copy link
Contributor

Choose a reason for hiding this comment

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

Using this syntax might just work:

[ADVANCED](accessors)

Copy link
Contributor

Choose a reason for hiding this comment

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

Adding "Customizing Xarray" makes the title quite long for the left sidebar. Seems better to shorten somehow

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point - how about "A Tour of Xarray Customizations"? Happy to iterate on this.

Copy link
Contributor

Choose a reason for hiding this comment

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

"Extending Xarray: A Tour"?

@JessicaS11 JessicaS11 merged commit e03ccd5 into xarray-contrib:main Jul 3, 2023
@JessicaS11 JessicaS11 deleted the accessors branch July 3, 2023 18:48
dcherian added a commit to dcherian/xarray-tutorial that referenced this pull request Jul 3, 2023
* upstream/main:
  move custom accessors to advanced and add more complex, runnable examples (xarray-contrib#168)
  Update and reorganize apply_ufunc material (xarray-contrib#180)
  Add jupyterlab-myst 2.0 and sphinx-exercise (xarray-contrib#187)
  Add jupyterlab-myst (xarray-contrib#182)
  Add codespace config for scipy 2023 (xarray-contrib#184)
  Add SciPy  Instructions (xarray-contrib#183)
  Edits to "Xarray and Dask" (xarray-contrib#177)
  Setup PR Preview workflow (xarray-contrib#175)
  contents write permissions for github token (xarray-contrib#178)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants