You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you can reproduce this error even without going through the html repr: repr(time_objs[:0]) and time_objs[:0].calendar raise the same error (but with a much shorter traceback).
To fix that, I wonder if we should either return None (since we can't infer the calendar from an empty array) or somehow cache the calendar (and all other dynamically inferred properties, if there are others) on creation / modification of the CFTimeIndex object.
What happened?
The html repr of a cftime array wants to display the "calendar", which it cannot if it is empty.
What did you expect to happen?
No error.
Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
Anything else we need to know?
Bisected to 7379923 use
_repr_inline_
for indexes that define it.Environment
The text was updated successfully, but these errors were encountered: