diff --git a/flint/coadd/linmos.py b/flint/coadd/linmos.py index 8fc15896..9b4fa0ad 100644 --- a/flint/coadd/linmos.py +++ b/flint/coadd/linmos.py @@ -277,8 +277,8 @@ def generate_linmos_parameter_set( logger.info(f"{len(img_str)} unique images from {len(images)} input collection. ") img_list: str = "[" + ",".join(img_str) + "]" - assert len(set(img_str)) == len( - images + assert ( + len(set(img_str)) == len(images) ), "Some images were dropped from the linmos image string. Something is bad, walk the plank. " # If no weights_list has been provided (and therefore no optimal diff --git a/tests/test_linmos_coadd.py b/tests/test_linmos_coadd.py index 98d6dafb..b156b35d 100644 --- a/tests/test_linmos_coadd.py +++ b/tests/test_linmos_coadd.py @@ -3,10 +3,10 @@ some of trhe helper functions around it. """ -import pytest from pathlib import Path import numpy as np +import pytest from astropy.io import fits from flint.coadd.linmos import BoundingBox, create_bound_box, trim_fits_image