Skip to content

Commit

Permalink
Merge pull request #319 from AdamTheisen/master
Browse files Browse the repository at this point in the history
BUG: Bug fix for conda release
  • Loading branch information
AdamTheisen authored May 1, 2021
2 parents f0ea82a + 524edfe commit 00ea525
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 00ea525

Please sign in to comment.