Skip to content

Commit

Permalink
print result
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmonteiro committed Aug 29, 2024
1 parent c25ef0b commit 1fc1312
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def parse_args(argv):
"serviceUri=", "user=", "passw=", "token=",
"tolerance=", "toleranceType=", "taskId=" ]
)
templateRepo ="tercen/kumo_umap_operator"
templateRepo ="tercen/kumo_data_prep_operator"

# If running locally or creating new operator, memory might no be set
# This parameter sets the memory for ALL operators
Expand All @@ -41,6 +41,7 @@ def parse_args(argv):
params["tolerance"] = 0.001
params["toleranceType"] = "relative"
params["hidden_columns"] = False
params["print_log"] = False

params["exclude_columns"] = []

Expand Down Expand Up @@ -73,6 +74,9 @@ def parse_args(argv):
if opt == '--opMem':
params["opMem"] = arg

if opt == '--printReport':
params["print_log"] = True

if opt == '--templateFolder':
params["templateFolder"] = arg

Expand Down Expand Up @@ -253,7 +257,14 @@ def run_with_params(params, mode="cli"):
params["toleranceType"], params["hidden_columns"], verbose, exclude=exclude)



if resultDict != None and resultDict != []:
if( params["print_log"] == True ):
print(json.dumps(
resultDict,
sort_keys=True,
indent=4,
separators=(',', ': ')))
if params["report"] == True:
resultDict = {w2.name: resultDict[0]}
resultList = {**resultList, **resultDict}
Expand Down

0 comments on commit 1fc1312

Please sign in to comment.