Skip to content

DOC: Add data= examples and async note (fix #2809)#2890

Open
OPMTerra wants to merge 8 commits into
zarr-developers:mainfrom
OPMTerra:doc/2809-create-array-data
Open

DOC: Add data= examples and async note (fix #2809)#2890
OPMTerra wants to merge 8 commits into
zarr-developers:mainfrom
OPMTerra:doc/2809-create-array-data

Conversation

@OPMTerra

@OPMTerra OPMTerra commented Mar 4, 2025

Copy link
Copy Markdown
Contributor

This PR improves documentation for the data parameter in array creation (#2809).

What's Included

  • Example using data=... for concise array creation
  • Code comparison showing equivalent methods

Verification

✅ Docs updated in user-guide/arrays.rst
✅ Built & previewed locally ([screenshot](
Screenshot 2025-03-18 212638
)
✅ No code changes needed

These changes help users:

  1. Write cleaner, more readable code
  2. Understand method equivalence

I'm happy to make any adjustments needed! 😊
@OPMTerra

@github-actions github-actions Bot added the needs release notes Automatically applied to PRs which haven't added release notes label Mar 4, 2025
Comment thread docs/user-guide/arrays.rst Outdated
Comment thread docs/user-guide/arrays.rst Outdated
Comment thread docs/user-guide/arrays.rst Outdated
Comment thread docs/user-guide/arrays.rst Outdated
Comment thread docs/user-guide/arrays.rst Outdated
OPMTerra and others added 2 commits March 18, 2025 21:08
Co-authored-by: Joe Hamman <jhamman1@gmail.com>
Shape inferred from data

Co-authored-by: Joe Hamman <jhamman1@gmail.com>
@OPMTerra

Copy link
Copy Markdown
Contributor Author

I've updated the screenshot to reflect the latest changes:

  • Removed redundant shape parameter
  • Simplified code example

@jhamman
jhamman enabled auto-merge (squash) March 18, 2025 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs release notes Automatically applied to PRs which haven't added release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants