From 068f47be69b823acbc450ae47bec0e136784d95a Mon Sep 17 00:00:00 2001 From: tgalvin Date: Tue, 10 Dec 2024 12:07:43 +0800 Subject: [PATCH] corrected some types --- flint/prefect/common/imaging.py | 2 +- flint/prefect/flows/subtract_cube_pipeline.py | 2 +- flint/validation.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flint/prefect/common/imaging.py b/flint/prefect/common/imaging.py index 48b87473..b17bf385 100644 --- a/flint/prefect/common/imaging.py +++ b/flint/prefect/common/imaging.py @@ -632,7 +632,7 @@ def task_linmos_images( from flint.naming import create_name_from_common_fields out_name = create_name_from_common_fields( - in_paths=filter_images, additional_suffixes=suffix_str + in_paths=tuple(filter_images), additional_suffixes=suffix_str ) out_dir = out_name.parent logger.info(f"Base output image name will be: {out_name}") diff --git a/flint/prefect/flows/subtract_cube_pipeline.py b/flint/prefect/flows/subtract_cube_pipeline.py index 90a04f46..6fbf87d6 100644 --- a/flint/prefect/flows/subtract_cube_pipeline.py +++ b/flint/prefect/flows/subtract_cube_pipeline.py @@ -201,7 +201,7 @@ def task_combine_all_linmos_images( assert len(images_to_combine) > 0, "No images to combine" - base_cube_path = create_name_from_common_fields(in_paths=images_to_combine) + base_cube_path = create_name_from_common_fields(in_paths=tuple(images_to_combine)) output_cube_path = create_image_cube_name( image_prefix=base_cube_path, mode="contsub", suffix=output_suffix ) diff --git a/flint/validation.py b/flint/validation.py index bac3757c..6aaa9870 100644 --- a/flint/validation.py +++ b/flint/validation.py @@ -1268,7 +1268,7 @@ def _make_beam_psf_row(beam_summary: BeamSummary) -> PSFTableRow: assert name_components is not None, f"{name_components=}, which should not happen" return PSFTableRow( - beam=int(name_components.beam), + beam=int(name_components.beam) if name_components.beam else -999, vis_flagged=vis_flagged, vis_total=vis_total, image_name=image_file.name,