spedas / pyspedas

Python-based Space Physics Environment Data Analysis Software
https://pyspedas.readthedocs.io/
MIT License
143 stars 58 forks source link

Regression in cdf_to_tplot when only loading a subset of variables #843

Closed jameswilburlewis closed 2 months ago

jameswilburlewis commented 2 months ago

I added a check to ensure that the time variable exists in the CDF before getting its attributes, but I should have been checking 'master_cdf_variables' rather than 'load_cdf_variables', which may only contain the subset of variables explicitly requested by the user.