File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
# This code is a part of X-ray: Generate and Analyse (XGA), a module designed for the XMM Cluster Survey (XCS).
2
- # Last modified by David J Turner (turne540@msu.edu) 12/08/2024, 11:43 . Copyright (c) The Contributors
2
+ # Last modified by David J Turner (turne540@msu.edu) 11/03/2025, 21:00 . Copyright (c) The Contributors
3
3
4
4
import os
5
5
import pickle
@@ -1327,6 +1327,9 @@ def dist_from_source(reg):
1327
1327
# TODO see issue #908, figure out how to support different resolutions of image
1328
1328
try :
1329
1329
ims = self .get_images (obs_id )
1330
+ # Make sure that the return is in a list
1331
+ if not isinstance (ims , list ):
1332
+ ims = [ims ]
1330
1333
except NoProductAvailableError :
1331
1334
raise NoProductAvailableError ("There is no image available for observation {o}, associated "
1332
1335
"with {n}. An image is currently required to check for sky "
You can’t perform that action at this time.
0 commit comments