From 233f69930af3691ee5b533ee5f124f51fd47e50c Mon Sep 17 00:00:00 2001 From: Brian Medeiros Date: Thu, 26 Feb 2026 15:11:28 -0700 Subject: [PATCH 1/2] fix bug reported in #422 --- lib/adf_info.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/adf_info.py b/lib/adf_info.py index fb4612a9b..55eaf1379 100644 --- a/lib/adf_info.py +++ b/lib/adf_info.py @@ -241,7 +241,7 @@ def __init__(self, config_file, debug=False): # End if # Check if history file path exists: - if any(baseline_hist_locs): + elif baseline_hist_locs and any(baseline_hist_locs): #Check if user provided if not baseline_hist_str: baseline_hist_str = ['cam.h0a'] @@ -256,7 +256,6 @@ def __init__(self, config_file, debug=False): base_hist_str = baseline_hist_str[0] starting_location = Path(baseline_hist_locs) print(f"\tChecking history files in '{starting_location}'") - file_list = sorted(starting_location.glob("*" + base_hist_str + ".*.nc")) #Check if the history file location exists if not starting_location.is_dir(): @@ -322,10 +321,6 @@ def __init__(self, config_file, debug=False): print(msg) eyear_baseline = base_found_eyr - #Grab baseline nickname - base_nickname = self.get_baseline_info('case_nickname') - if base_nickname is None: - base_nickname = data_name #End if #Grab baseline nickname From 4c81c186e6b82b122cf87203cf8b14352b529da7 Mon Sep 17 00:00:00 2001 From: Brian Medeiros Date: Thu, 26 Feb 2026 15:41:38 -0700 Subject: [PATCH 2/2] add generic environment yaml --- env/conda_environment_generic.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 env/conda_environment_generic.yaml diff --git a/env/conda_environment_generic.yaml b/env/conda_environment_generic.yaml new file mode 100644 index 000000000..982d583e2 --- /dev/null +++ b/env/conda_environment_generic.yaml @@ -0,0 +1,19 @@ +name: adf_v1.0.0 +channels: + - conda-forge + - defaults +dependencies: + - python=3.12 + - pyyaml=6.0.2 + - scipy=1.12.0 + - cartopy=0.23.0 + - netcdf4=1.6.5 + - xarray=2024.1.1 + - uxarray=2025.03.0 + - matplotlib=3.9.4 + - pandas=2.2.0 + - pint=0.23 + - xskillscore=0.0.24 + - geocat-comp=2024.04.0 + - xesmf>=0.8.8 + - nco