Skip to content

Commit 69b369b

Browse files
committed
Moved phot.py to using the new location for find_all_wcs. Indirectly for issue #1430
1 parent 793e25b commit 69b369b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

xga/products/phot.py

Lines changed: 5 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) 25/08/2025, 15:44. Copyright (c) The Contributors
2+
# Last modified by David J Turner (turne540@msu.edu) 25/08/2025, 15:48. Copyright (c) The Contributors
33

44
import os
55
import warnings
@@ -26,7 +26,7 @@
2626
from . import BaseProduct, BaseAggregateProduct
2727
from ..exceptions import FailedProductError, RateMapPairError, NotPSFCorrectedError, IncompatibleProductError
2828
from ..sourcetools import ang_to_rad
29-
from ..utils import xmm_sky, xmm_det, find_all_wcs
29+
from ..utils import xmm_sky, xmm_det
3030

3131
EMOSAIC_INST = {"EPN": "pn", "EMOS1": "mos1", "EMOS2": "mos2"}
3232
plt.rcParams['keymap.save'] = ''
@@ -196,6 +196,9 @@ def _read_wcs_on_demand(self):
196196
required more than the data for individual images (as the merged images are generally used
197197
for analysis), so this function is split out in the interests of efficiency.
198198
"""
199+
# Import here to avoid circular import woes
200+
from ..imagetools.misc import find_all_wcs
201+
199202
try:
200203
# Reads only the header information
201204
self._header = read_header(self.path)

0 commit comments

Comments
 (0)