From 87de5a6b197d75dc2bee92b5cb9179e7a25a2795 Mon Sep 17 00:00:00 2001 From: Alexander Dolich Date: Thu, 10 Nov 2022 15:56:03 +0100 Subject: [PATCH] from json2args import get_parameter --- src/run.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/run.py b/src/run.py index d407b57..0720cbf 100644 --- a/src/run.py +++ b/src/run.py @@ -5,10 +5,10 @@ import numpy as np import pandas as pd -from toolbox_runner.parameter import parse_parameter +from json2args import get_parameter # parse parameters -kwargs = parse_parameter() +kwargs = get_parameter() # check if a toolname was set in env toolname = os.environ.get('TOOL_RUN', 'profile').lower() @@ -56,4 +56,4 @@ def load_data(df_or_path): # In any other case, it was not clear which tool to run else: with open('/out/error.log', 'w') as f: - f.write(f"[{dt.now().isocalendar()}] Either no TOOL_RUN environment variable available, or '{toolname}' is not valid.\n") \ No newline at end of file + f.write(f"[{dt.now().isocalendar()}] Either no TOOL_RUN environment variable available, or '{toolname}' is not valid.\n")