Skip to content

Commit

Permalink
Merge branch 'main' of github.com:vforwater/tool_dataset_profiler int…
Browse files Browse the repository at this point in the history
…o main
  • Loading branch information
mmaelicke committed Nov 14, 2022
2 parents e6a998a + 87de5a6 commit d8b31e5
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 d8b31e5

Please sign in to comment.