From 5f9696f448846535fdf3d88efb38c7d2b6a23b7b Mon Sep 17 00:00:00 2001 From: archis Date: Wed, 13 Nov 2024 08:39:36 -0800 Subject: [PATCH] param conflict --- tsadar/process/prepare.py | 4 ++-- tsadar/runner.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tsadar/process/prepare.py b/tsadar/process/prepare.py index 927db72..7d70672 100644 --- a/tsadar/process/prepare.py +++ b/tsadar/process/prepare.py @@ -25,10 +25,10 @@ def prepare_data(config: Dict) -> Dict: custom_path = None if "filenames" in config["data"].keys(): if config["data"]["filenames"]["epw"] is not None: - custom_path = os.path.dirname(config["data"]["filenames"]["epw-local"]) + custom_path = os.path.dirname(config["data"]["filenames"]["tempepwfilepath"]) if config["data"]["filenames"]["iaw"] is not None: - custom_path = os.path.dirname(config["data"]["filenames"]["iaw-local"]) + custom_path = os.path.dirname(config["data"]["filenames"]["tempiawfilepath"]) [elecData, ionData, xlab, config["other"]["extraoptions"]["spectype"]] = loadData( config["data"]["shotnum"], config["data"]["shotDay"], config["other"]["extraoptions"], custom_path=custom_path diff --git a/tsadar/runner.py b/tsadar/runner.py index 0714b85..693cc1d 100644 --- a/tsadar/runner.py +++ b/tsadar/runner.py @@ -91,12 +91,12 @@ def run_for_app(run_id: str) -> str: config = yaml.safe_load(fi) if config["data"]["filenames"]["epw"] is not None: - config["data"]["filenames"]["epw-local"] = utils.download_file( + config["data"]["filenames"]["tempepwfilepath"] = utils.download_file( config["data"]["filenames"]["epw"], mlflow_run.info.artifact_uri, temp_path ) if config["data"]["filenames"]["iaw"] is not None: - config["data"]["filenames"]["iaw-local"] = utils.download_file( + config["data"]["filenames"]["tempiawfilepath"] = utils.download_file( config["data"]["filenames"]["iaw"], mlflow_run.info.artifact_uri, temp_path )