Skip to content

Commit

Permalink
Fix job execution issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fivegrant committed Jul 17, 2023
1 parent 1951c4e commit 97d2666
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions workers/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def ensemble_simulate(*args, **kwargs):
amr_paths,
weights,
solution_mappings,
num_samples
num_samples,
timepoints,
**kwargs
)
Expand Down Expand Up @@ -161,9 +161,9 @@ def ensemble_calibrate(*args, **kwargs):
output = load_and_calibrate_and_sample_ensemble_model(
amr_paths,
weights,
dataset_path
dataset_path,
solution_mappings,
num_samples
num_samples,
timepoints,
**kwargs
)
Expand Down
4 changes: 2 additions & 2 deletions workers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def wrapped(*args, **kwargs):
result = function(*args, **kwargs)
end_time = time.perf_counter()
logging.info(
f"Elapsed time for {function.__name__} for {kwargs["username"]}:",
f"Elapsed time for {function.__name__} for {kwargs['username']}:",
end_time - start_time
)
return result
Expand All @@ -183,7 +183,7 @@ def wrapped(*args, **kwargs):
Error occured in function: {function.__name__}
Username: {kwargs["username"]}
Username: {kwargs['username']}
################################
"""
Expand Down

0 comments on commit 97d2666

Please sign in to comment.