Skip to content

Commit

Permalink
corrected some types
Browse files Browse the repository at this point in the history
  • Loading branch information
tgalvin committed Dec 10, 2024
1 parent e45db52 commit 068f47b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion flint/prefect/common/imaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down
2 changes: 1 addition & 1 deletion flint/prefect/flows/subtract_cube_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
2 changes: 1 addition & 1 deletion flint/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 068f47b

Please sign in to comment.