From afcb46200546cb1330119126dd2969c0f52ce793 Mon Sep 17 00:00:00 2001 From: Chris Blanton Date: Tue, 6 May 2025 17:27:43 -0400 Subject: [PATCH] Change mdtf plugin's git source to a branch on MDTF and updated test script to include all configuration needed and point to a more permanent test input directory. --- user-analysis-scripts/freanalysis_MDTF/pyproject.toml | 2 +- user-analysis-scripts/freanalysis_MDTF/tests/test.py | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/user-analysis-scripts/freanalysis_MDTF/pyproject.toml b/user-analysis-scripts/freanalysis_MDTF/pyproject.toml index 876a057..af8bb71 100644 --- a/user-analysis-scripts/freanalysis_MDTF/pyproject.toml +++ b/user-analysis-scripts/freanalysis_MDTF/pyproject.toml @@ -9,7 +9,7 @@ name = "freanalysis_MDTF" version = "0.1" dependencies = [ "setuptools", - "MDTF-diagnostics@git+https://github.com/jtmims/MDTF-diagnostics@pip_refactor", + "MDTF-diagnostics@git+https://github.com/NOAA-GFDL/MDTF-diagnostics@pip_refactor", ] requires-python = ">= 3.6" authors = [ diff --git a/user-analysis-scripts/freanalysis_MDTF/tests/test.py b/user-analysis-scripts/freanalysis_MDTF/tests/test.py index 819b8c2..1738ccb 100644 --- a/user-analysis-scripts/freanalysis_MDTF/tests/test.py +++ b/user-analysis-scripts/freanalysis_MDTF/tests/test.py @@ -5,12 +5,15 @@ # run the 'example' MDTF POD name = "freanalysis_MDTF" # name of the custom analysis script you want to run -catalog_path = '/local/home/Jacob.Mims/djptest/mdtf/catalog.json' # absolute path to catalog .json file -out_dir = '/local/home/Jacob.Mims/analysistest/' # absolute path to dir that you would like the MDTF to run and output +catalog_path = "/work/c2b/freanalysis_MDTF/catalog.json" # absolute path to catalog .json file +out_dir = "/work/c2b/freanalysis_MDTF_output" # absolute path to dir that you would like the MDTF to run and output config={ - 'pods': ['example'], # list of pods you'd like to run + 'pods': ['Wheeler_Kiladis'], # list of pods you'd like to run 'startyr': '1990', # year to start analysis - 'endyr': '1995' # year to end analysis + 'endyr': '1995', # year to end analysis + 'custom_pod_info_json': "", + 'data_range': [1990, 1995], + 'use_gfdl_mdtf_env': True } figures = run_plugin(name, catalog_path, out_dir, config=config) print(figures)