From 03fbc6c628a7da40807d6381bd592f30d9ed8958 Mon Sep 17 00:00:00 2001 From: Adam Theisen Date: Mon, 3 May 2021 13:24:09 -0500 Subject: [PATCH] ENH: Bug fixes for conda release --- act/io/armfiles.py | 6 +++--- act/tests/test_plotting.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/act/io/armfiles.py b/act/io/armfiles.py index 8a868671dd..556a4d71e6 100644 --- a/act/io/armfiles.py +++ b/act/io/armfiles.py @@ -186,12 +186,12 @@ def read_netcdf(filenames, concat_dim='time', return_None=False, # Get file dates and times that were read in to the object filenames.sort() for f in filenames: - # If Not ARM format, read in first time for info - if len(f.split('.')) == 5: + # If Not ARM format, read in first time for infos + if len(f.split('/')[-1].split('.')) == 5: file_dates.append(f.split('.')[-3]) file_times.append(f.split('.')[-2]) else: - if len(arm_ds['time'].values) > 1: + if arm_ds['time'].size > 1: dummy = arm_ds['time'].values[0] else: dummy = arm_ds['time'].values diff --git a/act/tests/test_plotting.py b/act/tests/test_plotting.py index 9e91775694..f1a20f0b4e 100644 --- a/act/tests/test_plotting.py +++ b/act/tests/test_plotting.py @@ -322,7 +322,7 @@ def test_multi_skewt_plot(): return skewt.fig -@pytest.mark.mpl_image_compare(tolerance=30) +@pytest.mark.mpl_image_compare(tolerance=31) def test_xsection_plot(): visst_ds = arm.read_netcdf( sample_files.EXAMPLE_CEIL1)