Skip to content

Commit

Permalink
BUG: Bug fix for conda release
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamTheisen committed May 1, 2021
1 parent f0ea82a commit 524edfe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion act/io/armfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,10 @@ def read_netcdf(filenames, concat_dim='time', return_None=False,
file_dates.append(f.split('.')[-3])
file_times.append(f.split('.')[-2])
else:
dummy = arm_ds['time'].values[0]
if len(arm_ds['time'].values) > 1:
dummy = arm_ds['time'].values[0]
else:
dummy = arm_ds['time'].values
file_dates.append(utils.numpy_to_arm_date(dummy))
file_times.append(utils.numpy_to_arm_date(dummy, returnTime=True))

Expand Down

0 comments on commit 524edfe

Please sign in to comment.