|
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) 18/07/2025, 10:21. Copyright (c) The Contributors |
| 2 | +# Last modified by David J Turner (djturner@umbc.edu) 11/12/2025, 17:08. Copyright (c) The Contributors |
3 | 3 |
|
4 | 4 | from typing import List |
5 | 5 |
|
@@ -274,18 +274,13 @@ def __init__(self, ra: np.ndarray, dec: np.ndarray, redshift: np.ndarray, name: |
274 | 274 | peak_find_method, True, telescope, search_distance, |
275 | 275 | cur_inc_core_pnt_src) |
276 | 276 | final_names.append(n) |
277 | | - except NoValidObservationsError: |
278 | | - # warn("After a failed attempt to find an X-ray peak, and after applying the criteria for " |
279 | | - # "the minimum amount of cluster required on an observation, {} cannot be declared as " |
280 | | - # "all potential observations were removed".format(n)) |
281 | | - self._failed_sources[n] = "Failed ObsClean" |
282 | | - |
283 | | - except NoValidObservationsError: |
284 | | - # warn("After applying the criteria for the minimum amount of cluster required on an " |
285 | | - # "observation, {} cannot be declared as all potential observations were removed".format(n)) |
| 277 | + except NoValidObservationsError as err: |
| 278 | + self._failed_sources[n] = str(err) |
| 279 | + |
| 280 | + except NoValidObservationsError as err: |
286 | 281 | # Note we don't append n to the final_names list here, as it is effectively being |
287 | 282 | # removed from the sample |
288 | | - self._failed_sources[n] = "Failed ObsClean" |
| 283 | + self._failed_sources[n] = str(err) |
289 | 284 | dec_lb.update(1) |
290 | 285 |
|
291 | 286 | self._names = final_names |
|
0 commit comments