File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# 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) 06/06/2025, 11:21 . Copyright (c) The Contributors
2+ # Last modified by David J Turner (turne540@msu.edu) 06/06/2025, 11:29 . Copyright (c) The Contributors
33
44import os
55import pickle
@@ -1530,7 +1530,7 @@ def dist_from_source(reg):
15301530 # If either of these are fulfilled then we MUST have a WCS - even though custom regions are always
15311531 # in RA-DEC, the regions module requires a passed wcs to be able to use 'contains' - will have to
15321532 # change all this at some point
1533- if ds9_regs [0 ] is not None and len (custom_regs ) != 0 :
1533+ if ds9_regs [0 ] is not None or len (custom_regs ) != 0 :
15341534 # Grab all images for the ObsID, instruments across an ObsID have the same WCS (other than in cases
15351535 # where they were generated with different resolutions).
15361536 # TODO see issue #908, figure out how to support different resolutions of image
You can’t perform that action at this time.
0 commit comments