Skip to content

Handle 0-dim arrays being passed to ordinal converter#1300

Open
peanutfun wants to merge 1 commit into
developfrom
xarray-0dim
Open

Handle 0-dim arrays being passed to ordinal converter#1300
peanutfun wants to merge 1 commit into
developfrom
xarray-0dim

Conversation

@peanutfun

@peanutfun peanutfun commented Jul 2, 2026

Copy link
Copy Markdown
Member

Changes proposed in this PR:

  • Explicitly cast scalar array to a 1-dim array before passing it to the datetime to ordinal converter function

I don't think this requires a test.

This resolves an issue that occurs in the GloFAS river flood module (CLIMADA-project/climada_petals#167).

PR Author Checklist

PR Reviewer Checklist

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.

1 participant