Skip to content

Commit

Permalink
from json2args import get_parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexDo1 authored Nov 10, 2022
1 parent cf57d8e commit 87de5a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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")
f.write(f"[{dt.now().isocalendar()}] Either no TOOL_RUN environment variable available, or '{toolname}' is not valid.\n")

0 comments on commit 87de5a6

Please sign in to comment.