Open jklenzing opened 1 year ago
When loading some cdf datasets, pysatCDF may reference epoch before it is assigned.
import pysat import pysatNASA vefi = pysat.Instrument('de2', 'vefi') vefi.load(1983, 1)
yields
# all of the data left over is 1D, add as Series > data = pandas.DataFrame(cdata, index=epoch) E UnboundLocalError: local variable 'epoch' referenced before assignment ../pysatCDF/pysatCDF/_cdf.py:686: UnboundLocalError
enh/de2
Found while working on https://github.com/pysat/pysatNASA/pull/155
According to GitHub Actions, this succeeds on windows, but fails on ubuntu / mac
Description
When loading some cdf datasets, pysatCDF may reference epoch before it is assigned.
To Reproduce this bug:
yields
Test configuration
enh/de2
branch of pysatNASAAdditional context
Found while working on https://github.com/pysat/pysatNASA/pull/155