Skip to content

Commit 3773c3c

Browse files
author
David Turner
committed
Still trying to fix the problem that fixing issue #1353 uncovered
1 parent c101095 commit 3773c3c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

xga/sources/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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

44
import os
55
import 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

0 commit comments

Comments
 (0)