Skip to content

Commit

Permalink
reversed args so that order of input is correct
Browse files Browse the repository at this point in the history
  • Loading branch information
adityasevak123ga committed Nov 23, 2023
1 parent 2c9acb0 commit c04a0f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion uncoverml/log_progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


# I know that this is sketchy, will switch to logging on next refactor
def write_progress_to_file(type, message, current_config:Config):
def write_progress_to_file(type, message, current_config: Config):
write_file_path = Path(current_config.output_dir) / f'{type}_progress.txt'
with open(write_file_path, 'a') as write_file:
write_file.write(f'{message}\n')
4 changes: 2 additions & 2 deletions uncoverml/scripts/uncoverml.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,9 +454,9 @@ def predict(model_or_cluster_file, partitions, mask, retain, prediction_template
if interface_job:
write_progress_to_file('pred', 'Preparing results for upload', config)
uncoverml.interface_utils.rename_files_before_upload(config)
uncoverml.interface_utils.create_thumbnail('prediction', config)
uncoverml.interface_utils.create_thumbnail(config, 'prediction')
uncoverml.interface_utils.calc_std(config)
uncoverml.interface_utils.create_thumbnail('std', config)
uncoverml.interface_utils.create_thumbnail(config, 'std')
uncoverml.interface_utils.create_results_zip(config)
uncoverml.interface_utils.read_presigned_urls_and_upload(config, 'pred')
write_progress_to_file('pred', 'Uploading results to AWS', config)
Expand Down

0 comments on commit c04a0f2

Please sign in to comment.