From 882c834fbf447c2a2cbeba25a94d29cd29ea2a96 Mon Sep 17 00:00:00 2001 From: Vietbao Tran <46217210+TapuCosmo@users.noreply.github.com> Date: Mon, 15 Sep 2025 15:27:29 -0700 Subject: [PATCH] fix: remove incorrect call to len() in ref_img_src_dir = len(...) The ref_img_src_dir should be a string, not an int. This fixes an error caused by the following line calling len() on an int. --- valis/registration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/valis/registration.py b/valis/registration.py index fb98c30b..c4d7e1a4 100644 --- a/valis/registration.py +++ b/valis/registration.py @@ -2041,7 +2041,7 @@ def __init__(self, src_dir, dst_dir, series=None, name=None, image_type=None, if valtils.get_name(reference_img_f) not in img_names: if not imgs_ordered: # Reference image not in img_list, but not ordered. So just append - ref_img_src_dir = len(os.path.split(reference_img_f)[0]) + ref_img_src_dir = os.path.split(reference_img_f)[0] if len(ref_img_src_dir) == 0: # Only provided file name. Assuming it's located it src directory reference_img_f = os.path.join(self.dst_dir, reference_img_f)