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

Big docs reorganise and expand. #109

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Big docs reorganise and expand. #109

wants to merge 13 commits into from

Conversation

pp-mo
Copy link
Owner

@pp-mo pp-mo commented Jan 16, 2025

Closes #80
Refactored version of #105

Adds new sections on core data and general operations.
Integrates the how-to sections also

Todos:

  • prune for repetition.
  • review + clarify 4-way Diataxis-like top-level division =
    • Getting Started (intro + tutorial)
    • User Guide
    • API
    • Detail Notes
  • move existing details sections to "detail notes" sections (possibly with short hinting links)
  • add a how-to on chunking control
  • review for changes to equality provision (no comprehensive == on variable/ncdata)
  • re-proof-read all

@pp-mo pp-mo mentioned this pull request Jan 16, 2025
4 tasks
@pp-mo pp-mo changed the title Big rework and expand docs. Big docs reorganise and expand. Jan 16, 2025
@pp-mo pp-mo requested a review from trexfeathers January 29, 2025 10:13
@pp-mo
Copy link
Owner Author

pp-mo commented Jan 29, 2025

@trexfeathers welcome and thanks for looking !
if reviewing, scope here is really : do the docs structure and coverage generally look appropriate to you now (as a first proper attempt). i.e. notably

  • are there things badly misplaced
  • or plain missing
  • is it clear enough from the entry point level what is available + where to find things

Great also to have anyone else comment on this,
I think it's the only thing really needed now prior to v0.2 release (except release whatsnew drafting)

@pp-mo
Copy link
Owner Author

pp-mo commented Feb 6, 2025

OK I have now reviewed all the API docs builds, fixed (hopefully) for correctness and updated, generally smoothed over and introduced some more cross-links into newer docs sections where it seemed obvious.

So I reckon this is up to scratch now, pending any suggestions about structural improvements.

Copy link
Collaborator

@trexfeathers trexfeathers left a comment

Choose a reason for hiding this comment

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

OK I've read most of it. It is impressively comprehensive 💐

To-do for @trexfeathers:

  • Review the details section
  • Consider the overall structure/approachability

docs/userdocs/user_guide/data_objects.rst Outdated Show resolved Hide resolved

:class:`~ncdata.NcData`
^^^^^^^^^^^^^^^^^^^^^^^
This represents a dataset containing variables, attributes and groups.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
This represents a dataset containing variables, attributes and groups.
This represents a dataset containing variables, attributes and dimensions.

Copy link
Owner Author

@pp-mo pp-mo Feb 6, 2025

Choose a reason for hiding this comment

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

OK, but a dataset also contains groups, so I guess it should be both. Will fix ...

docs/userdocs/user_guide/data_objects.rst Outdated Show resolved Hide resolved
Comment on lines +169 to +171
but **not** ``unit = dataset.variables['x'].attributes['attr1']``

And not ``unit = dataset.variables['x'].attributes['attr1']``
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are these identical?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Not sure, will fix!

docs/userdocs/user_guide/common_operations.rst Outdated Show resolved Hide resolved
Comment on lines +517 to +519
>>> if "_fillvalue" in var.attributes:
>>> var.attributes.rename("_fillvalue", "_FillValue")
...
Copy link
Collaborator

Choose a reason for hiding this comment

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

Missing indenting


Load a file containing variable-width string variables
------------------------------------------------------
You must supply a ``dim_chunks`` keyword to the :meth:`ncdata.netcdf.from_nc4` method,
Copy link
Collaborator

Choose a reason for hiding this comment

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

This Sphinx domain hasn't rendered, and would be quite useful for getting more detail.


Accepts paths, pathstrings, open :class:`netCDF4.Dataset`\\s or :class:`NcData` objects.
Accepts paths, pathstrings, open :class:`netCDF4.Dataset`\s or :class:`NcData`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Sphinx domains not rendering

Comment on lines +47 to +49
.. NOTE::
This solution is at present still experimental, and not itself fully thread-safe,
so probably only suitable for top-level global application.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not clear whether this is referring to everything, or just the context manager.

@@ -36,7 +43,7 @@ There are no current plans to address these, but could be considered in future
* notably, includes compound and variable-length types

* ..and especially **variable-length strings in variables**.
see : :ref:`string_and_character_data`
see : :ref:`string-and-character-data`, ref:`data-types`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Cross reference not rendering.

@pp-mo pp-mo mentioned this pull request Feb 6, 2025
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.

Documentation extensions
2 participants