From 524edfe128d9a8c6c85eb66423f407ceaf3acec6 Mon Sep 17 00:00:00 2001 From: Adam Theisen Date: Fri, 30 Apr 2021 20:58:22 -0500 Subject: [PATCH] BUG: Bug fix for conda release --- act/io/armfiles.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/act/io/armfiles.py b/act/io/armfiles.py index d49696bd05..8a868671dd 100644 --- a/act/io/armfiles.py +++ b/act/io/armfiles.py @@ -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))