Skip to content

Commit d4e98ca

Browse files
committed
Hotfix for globs
1 parent 45abb0e commit d4e98ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arrakis/imager.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,9 @@ def image_beam(
297297
aux_lists = {}
298298
for pol in pols:
299299
imglob = (
300-
f"{prefix}*[0-9]-image.fits"
300+
f"{prefix}-*[0-9]-image.fits"
301301
if pol == "I"
302-
else f"{prefix}*[0-9]-{pol}-image.fits"
302+
else f"{prefix}-*[0-9]-{pol}-image.fits"
303303
)
304304
image_list = sorted(glob(imglob))
305305
image_lists[pol] = image_list
@@ -308,9 +308,9 @@ def image_beam(
308308

309309
for aux in ["model", "psf", "residual", "dirty"]:
310310
aux_list = (
311-
sorted(glob(f"{prefix}*[0-9]-{aux}.fits"))
311+
sorted(glob(f"{prefix}-*[0-9]-{aux}.fits"))
312312
if pol == "I" or aux == "psf"
313-
else sorted(glob(f"{prefix}*[0-9]-{pol}-{aux}.fits"))
313+
else sorted(glob(f"{prefix}-*[0-9]-{pol}-{aux}.fits"))
314314
)
315315
aux_lists[(pol, aux)] = aux_list
316316

0 commit comments

Comments
 (0)