Skip to content

Updated the error messages for 'decode_cf_datetime' function#7

Open
fumedev[bot] wants to merge 1 commit intotest10from
error_handling_improvements
Open

Updated the error messages for 'decode_cf_datetime' function#7
fumedev[bot] wants to merge 1 commit intotest10from
error_handling_improvements

Conversation

@fumedev
Copy link
Copy Markdown

@fumedev fumedev bot commented Mar 24, 2024

UPDATED

  • Modified the decode_cf_datetime function in xarray/coding/times.py to include the variable name in the error message. The function now captures the specific variable name causing the error and adds it to the error message to assist users in diagnosing issues more effectively.

CHANGED

  • Updated various functions that call decode_cf_datetime to pass the accurate variable name parameter. Functions such as CFDatetimeCoder in xarray/conventions.py have been modified to include the name argument, ensuring that the variable name is now passed along when decoding time units, improving error messaging and clarity for users.

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.

0 participants