Closed jameswilburlewis closed 7 months ago
Possibly already fixed in either cdflib or cdf_to_tplot -- the error no longer occurs. I have re-enabled this test in the Cluster test suite.
I think I figured out how we were getting bare scalars in Cluster CDFs. Something seems to be going wrong in their CDF creation process...If there is only a single timestamp, the associated data variables can lose their leading (time) dimension, and also get marked non-record-variant. That seems to be what happened here...a one-element array of scalars got turned into a single bare scalar. This should be more fully fixed in pytplot-mpl-temp 2.2.36.
This code:
causes a crash:
I think the issue is that
ydata
is actually a scalar for this variable...I'm not sure how that even happens in a CDF (would expect a 1-element array?), yet there it is.