xrft icon indicating copy to clipboard operation
xrft copied to clipboard

Docs

Open zmoon opened this issue 4 years ago • 10 comments

Update docs, configure some things that were not yet configured, ...

  • clean up Conda env
  • fix GH issue links in whats-new
  • RTD theme set in conf
  • add intersphinx/crossreferences
  • clean up docstrings
  • main API page organized; use top-level namespace for the generated documentation of the functions
  • edit other text a bit

Remaining:

  • [ ] example nbs
  • [ ] add * to other signatures

zmoon avatar Nov 25 '21 06:11 zmoon

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Thanks for these edits @zmoon ! :)

roxyboy avatar Nov 28 '21 13:11 roxyboy

@zmoon Can you run black on detrend.py? The pre-commit tests seems to be failing...

roxyboy avatar Nov 28 '21 13:11 roxyboy

@roxyboy, when are you planning to make the true_* arguments True by default? Just wondering, as currently the examples generate warnings related to that.

Also would you mind if I switch from nbsphinx to myst_nb to render the nbs? nbsphinx is not doing well in the cases with inline code inside strong or links, e.g. in the main example. And with myst_nb, we can easily cross-reference API and use admonitions etc.

zmoon avatar Nov 28 '21 18:11 zmoon

Also how big is the dataset for the MITgcm example? Could it be included in the repo or somewhere else where it could be downloaded?

zmoon avatar Nov 28 '21 19:11 zmoon

Thanks so much for this much needed maintenance @zmoon! We really appreciate your efforts! 🏆

I am fine with changing any of the configurations in the docs to make things easier going forward. myst_nb is definitely fine.

Also how big is the dataset for the MITgcm example? Could it be included in the repo or somewhere else where it could be downloaded?

We could put it in Zenodo and use Pooch. Or we could use one one of the Pangeo Cloud datasets - https://catalog.pangeo.io/browse/master/ocean/channel/

rabernat avatar Nov 29 '21 14:11 rabernat

@roxyboy, when are you planning to make the true_* arguments True by default? Just wondering, as currently the examples generate warnings related to that.

This is a good question. What's the normal period/cycles packages allow for a deprecation...?

roxyboy avatar Dec 04 '21 11:12 roxyboy

Great work! I've found some small typos in the notebooks of zmoon:docs. I cannot comment it directly here, because the diff is too large. What is the best-practice-procedure here? Should I fork zmoon:docs and pull a request into his repo? image image --> I think these should be xrft.fft and xrft.ifft, respectively.

One more thing: What about the xrft.fft FutureWarnings, shouldn't they be triggered only when using xrft.dft?

KevinYanesG avatar Apr 28 '22 14:04 KevinYanesG

I wanted to correct the other two notebooks that haven't been refactored in this PR: https://github.com/xgcm/xrft/pull/185.

KevinYanesG avatar Apr 28 '22 14:04 KevinYanesG

View / edit / reply to this conversation on ReviewNB

KevinYanesG commented on 2022-04-28T14:53:14Z ----------------------------------------------------------------

Now I learned that we can review the notebooks cell by cell with this tool. As I said, I think in the last sentence we should have xrft.fft and xrft.ifft.