pysat / pysatNASA

pysat support for NASA Instruments
BSD 3-Clause "New" or "Revised" License
21 stars 6 forks source link

BUG: TIMED SABER load #115

Closed jklenzing closed 2 years ago

jklenzing commented 2 years ago

Describe the bug When trying to load timed saber data, we get an error.

To Reproduce

import pysat
inst = pysat.Instrument('timed', 'saber')
inst.load(2019, 1)

yields

~/code/core/pysatNASA/pysatNASA/instruments/methods/cdaweb.py in load(fnames, tag, inst_id, file_cadence, flatten_twod)
    111             data = pds.concat(ldata)
    112 
--> 113         return data, meta
    114 
    115 

UnboundLocalError: local variable 'data' referenced before assignment

Expected behavior Data should load

Screenshots n/a

Desktop (please complete the following information):

Additional context Different error from #113 and #114, but discovered at the same time.

jklenzing commented 2 years ago

Root cause: files previously downloaded as empty. Redownloaded, now working.