Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generalize message in specextract #844

Merged
merged 2 commits into from
Apr 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ciao_contrib/_tools/specextract.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2021-2023
# Copyright (C) 2021, 2023
# Smithsonian Astrophysical Observatory
#
#
Expand Down Expand Up @@ -443,7 +443,7 @@ def _check_event_stats(self,file,refcoord_check=None,
if counts == "0":
try:
if refcoord_check.lower() in ["","none","indef"]:
raise IOError(f"{file} has zero counts. Check that the region format is in sky pixels coordinates.")
raise IOError(f"{file} has zero counts. Check that the region correct (e.g. wrong region, coordinates not in sky pixels or degrees).")
DougBurke marked this conversation as resolved.
Show resolved Hide resolved
DougBurke marked this conversation as resolved.
Show resolved Hide resolved

if weights_check:
v1("WARNING: Unweighted responses will be created at the 'refcoord' position.\n")
Expand Down