Skip to content

Commit

Permalink
fix: minor value
Browse files Browse the repository at this point in the history
  • Loading branch information
Aydawka committed Jan 21, 2025
1 parent a69337b commit dce990d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 41 deletions.
41 changes: 1 addition & 40 deletions env_sensor_pipeline_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,43 +219,6 @@ def worker(
outputs_uploaded = True

file_processor.delete_preexisting_output_files(path)

# with open(f"{output_file}", "rb") as data:
# f2 = output_file.split("/")[-1]
#
# output_file_path = f"{processed_data_output_folder}/environmental_sensor/leelab_anura/{pid}/{f2}"
#
# logger.debug(f"Uploading {output_file} to {output_file_path}")
#
# try:
# output_file_client = file_system_client.get_file_client(
# file_path=output_file_path
# )
#
# # Check if the file already exists. If it does, throw an exception
# if output_file_client.exists():
# raise Exception(
# f"File {output_file_path} already exists. Throwing exception"
# )
#
# output_file_client.upload_data(data, overwrite=True)
#
# logger.info(f"Uploaded {output_file_path}")
# except Exception:
# outputs_uploaded = False
# logger.error(f"Failed to upload {output_file_path}")
#
# error_exception = "".join(format_exc().splitlines())
#
# logger.error(error_exception)
# file_processor.append_errors(error_exception, path)
#
# logger.time(time_estimator.step())
# continue
#
# file_item["output_files"].append(output_file_path)
# workflow_output_files.append(output_file_path)

file_processor.confirm_output_files(path, workflow_output_files, "")

if outputs_uploaded:
Expand Down Expand Up @@ -356,9 +319,7 @@ def pipeline(study_id: str, workers: int = 4, args: list = None):
paths = file_system_client.get_paths(path=input_folder, recursive=False)
file_processor = FileMapProcessor(dependency_folder, ignore_file, args)

for idx, path in enumerate(paths):
if idx == 50:
break
for path in paths:
t = str(path.name)

file_name = t.split("/")[-1]
Expand Down
2 changes: 1 addition & 1 deletion optomed_pipeline_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ def pipeline(study_id: str, workers: int = 4, args: list = None):
if __name__ == "__main__":
sys_args = sys.argv

workers = 1
workers = 4

parser = argparse.ArgumentParser(description="Process optomed data files")
parser.add_argument(
Expand Down

0 comments on commit dce990d

Please sign in to comment.