Skip to content

Commit

Permalink
Corrected variable naming error and combined three lines into one try…
Browse files Browse the repository at this point in the history
… catch block
  • Loading branch information
vlianCMU committed Mar 28, 2024
1 parent 45a4cfe commit 2ab2ed4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions sdt_dask/dask_tool/sdt_dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,12 @@ def helper(datahandler, key):
runtime = None
try:
report = datahandler.report(return_values=True, verbose=False)
except Exception as e:
print(e)
try:
loss_report = datahandler.loss_analysis.report()
except Exception as e:
print(e)
try:
run_time = datahandler.total_time
runtime = datahandler.total_time
except Exception as e:
print(e)

return Data(report, loss_report, run_time)
return Data(report, loss_report, runtime)

def helper_data(datas):
return [data if data is not None else {} for data in datas]
Expand Down

0 comments on commit 2ab2ed4

Please sign in to comment.