Skip to content

Commit

Permalink
i/o files need to be paths
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-riggs committed Aug 14, 2024
1 parent cd5a4a2 commit 2f5bd03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cryoemservices/services/node_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,12 +376,12 @@ def dummy(self, *args, **kwargs):
relative_input_file = (
Path(first_input_file).relative_to(project_dir)
if Path(first_input_file).is_relative_to(project_dir)
else first_input_file
else Path(first_input_file)
)
relative_output_file = (
Path(job_info.output_file).relative_to(project_dir)
if Path(job_info.output_file).is_relative_to(project_dir)
else job_info.output_file
else Path(job_info.output_file)
)

# Load this job as a pipeliner job to create the nodes
Expand Down Expand Up @@ -455,7 +455,7 @@ def dummy(self, *args, **kwargs):
# metadata_file.write(json.dumps(metadata_dict))
# except FileNotFoundError as e:
# self.log.info(f"Cannot open expected metadata file: {e}")
(job_dir / "job_metadata.json").touch()
(job_dir / "job_metadata.json").touch()

# Create the results display for the non-pipeliner job
if job_info.job_type == "combine_star_files_job":
Expand Down

0 comments on commit 2f5bd03

Please sign in to comment.