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

Use variable name in all exceptions raised in as_variable #7995

Merged
merged 2 commits into from
Jul 17, 2023

Conversation

ZedThree
Copy link
Contributor

@ZedThree ZedThree commented Jul 17, 2023

This is more consistent with the other exceptions raised in this function, and helps to more quickly diagnose issues when e.g. creating datasets.

  • User visible changes (including notable bug fixes) are documented in whats-new.rst

Is this a large enough change to warrant an entry in whats-new?

This is more consistent with the other exceptions raised in this
function, and helps to more quickly diagnose issues when e.g. creating
datasets
@welcome
Copy link

welcome bot commented Jul 17, 2023

Thank you for opening this pull request! It may take us a few days to respond here, so thank you for being patient.
If you have questions, some answers may be found in our contributing guidelines.

@TomNicholas
Copy link
Member

Thank you @ZedThree ! Also good to see you on here :)

Is this a large enough change to warrant an entry in whats-new?

I say yes, and then you get credit in the changelog too.

@ZedThree
Copy link
Contributor Author

An easy first fix! 😄

Done! Added to internal changes, though I guess it would also work under documentation

Copy link
Member

@TomNicholas TomNicholas left a comment

Choose a reason for hiding this comment

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

An easy first fix!

Great! There are almost certainly other places which could have clearer error messages like this FYI, especially after #5692 and related changes.

Done! Added to internal changes, though I guess it would also work under documentation

Absolutely fine.

@dcherian
Copy link
Contributor

This is a great addition. Thanks @ZedThree ! Welcome to Xarray.

@dcherian dcherian merged commit 647376d into pydata:main Jul 17, 2023
@welcome
Copy link

welcome bot commented Jul 17, 2023

Congratulations on completing your first pull request! Welcome to Xarray! We are proud of you, and hope to see you again! celebration gif

@ZedThree ZedThree deleted the variable-name-in-exceptions branch July 17, 2023 15:33
dcherian added a commit to dcherian/xarray that referenced this pull request Jul 24, 2023
…lazy-array

* upstream/main: (153 commits)
  Add HDF5 Section to read/write docs page (pydata#8012)
  [pre-commit.ci] pre-commit autoupdate (pydata#8014)
  Update interpolate_na in dataset.py (pydata#7974)
  improved docstring of to_netcdf (issue pydata#7127) (pydata#7947)
  Expose "Coordinates" as part of Xarray's public API (pydata#7368)
  Core team member guide (pydata#7999)
  join together duplicate entries in the text `repr` (pydata#7225)
  Update copyright year in README (pydata#8007)
  Allow opening datasets with nD dimenson coordinate variables. (pydata#7989)
  Move whats-new entry
  [pre-commit.ci] pre-commit autoupdate (pydata#7997)
  Add documentation on custom indexes (pydata#6975)
  Use variable name in all exceptions raised in `as_variable` (pydata#7995)
  Bump pypa/gh-action-pypi-publish from 1.8.7 to 1.8.8 (pydata#7994)
  New whatsnew section
  Remove future release notes before this release
  Update whats-new.rst for new release (pydata#7993)
  Remove hue_style from plot1d docstring (pydata#7925)
  Add new what's new section (pydata#7986)
  Release summary for v2023.07.0 (pydata#7979)
  ...
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