Skip to content

Commit

Permalink
rename func
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrOertlin committed Jul 26, 2024
1 parent 59a2d41 commit ce2e50d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cg/apps/housekeeper/hk.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ def add_bundle_and_version_if_non_existent(self, bundle_name: str) -> None:
else:
LOG.debug(f"Bundle with name {bundle_name} already exists")

def create_bundle_add_file_with_tags(
def create_bundle_and_add_file_with_tags(
self,
bundle_name: str,
file_path: Path,
Expand Down
4 changes: 2 additions & 2 deletions cg/services/illumina/post_processing/housekeeper_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def add_sample_fastq_files_to_housekeeper(
device_internal_id=run_directory_data.id,
store=store,
):
hk_api.create_bundle_add_file_with_tags(
hk_api.create_bundle_and_add_file_with_tags(
bundle_name=sample_internal_id,
file_path=sample_fastq_path,
tags=[run_directory_data.id, sample_internal_id, SequencingFileTag.FASTQ],
Expand Down Expand Up @@ -106,7 +106,7 @@ def store_undetermined_fastq_files(
device_internal_id=run_directory_data.id,
store=store,
):
hk_api.create_bundle_add_file_with_tags(
hk_api.create_bundle_and_add_file_with_tags(
bundle_name=sample_id,
file_path=fastq_path,
tags=[run_directory_data.id, SequencingFileTag.FASTQ, sample_id],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def store_files_in_housekeeper(self, run_data: PacBioRunData):
bundle_info: PacBioFileData = self._create_bundle_info(
file_path=file_path, parsed_metrics=parsed_metrics
)
self.hk_api.create_bundle_add_file_with_tags(
self.hk_api.create_bundle_and_add_file_with_tags(
bundle_name=bundle_info.bundle_name,
file_path=bundle_info.file_path,
tags=bundle_info.tags,
Expand Down

0 comments on commit ce2e50d

Please sign in to comment.