From ce2e50daf10922b07759d2c3b46d3332ad3b519b Mon Sep 17 00:00:00 2001 From: Christian Oertlin Date: Fri, 26 Jul 2024 14:55:44 +0200 Subject: [PATCH] rename func --- cg/apps/housekeeper/hk.py | 2 +- cg/services/illumina/post_processing/housekeeper_storage.py | 4 ++-- .../pacbio/housekeeper_service/pacbio_houskeeper_service.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cg/apps/housekeeper/hk.py b/cg/apps/housekeeper/hk.py index 88f7e94677..3a5108f127 100644 --- a/cg/apps/housekeeper/hk.py +++ b/cg/apps/housekeeper/hk.py @@ -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, diff --git a/cg/services/illumina/post_processing/housekeeper_storage.py b/cg/services/illumina/post_processing/housekeeper_storage.py index 0d36d0c241..d2557504b5 100644 --- a/cg/services/illumina/post_processing/housekeeper_storage.py +++ b/cg/services/illumina/post_processing/housekeeper_storage.py @@ -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], @@ -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], diff --git a/cg/services/post_processing/pacbio/housekeeper_service/pacbio_houskeeper_service.py b/cg/services/post_processing/pacbio/housekeeper_service/pacbio_houskeeper_service.py index 96d276f55e..f8ddebc0c5 100644 --- a/cg/services/post_processing/pacbio/housekeeper_service/pacbio_houskeeper_service.py +++ b/cg/services/post_processing/pacbio/housekeeper_service/pacbio_houskeeper_service.py @@ -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,