Skip to content

Commit

Permalink
BUG: combine single value list
Browse files Browse the repository at this point in the history
  • Loading branch information
jklenzing committed Aug 3, 2023
1 parent 9678664 commit 2c1e6aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pysatNASA/instruments/methods/cdaweb.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,12 @@ def load_xarray(fnames, tag='', inst_id='',
ldata.append(temp_data)

# Combine individual files together, concat along epoch
if len(ldata) > 0:
if len(ldata) > 1:
data = xr.combine_nested(ldata, epoch_name,
combine_attrs='override')
else:
data = ldata[0]


all_vars = io.xarray_all_vars(data)

Expand Down

0 comments on commit 2c1e6aa

Please sign in to comment.