Skip to content

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

Merged
peanutfun merged 1 commit into
developfrom
xarray-0dim
Jul 13, 2026
Merged

Handle 0-dim arrays being passed to ordinal converter#1300
peanutfun merged 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

@peanutfun peanutfun merged commit cf0aa86 into develop Jul 13, 2026
3 of 9 checks passed
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.

2 participants