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

Bug/fix srctool output #1269

Merged
merged 13 commits into from
Dec 5, 2024
Merged

Conversation

HallJoseph
Copy link
Collaborator

@HallJoseph HallJoseph commented Nov 21, 2024

Ok we have figured out what is happening - is to do with the new version of srctool in eSASSDR1. There is a new parameter “write_insts”, by default this will be “0 1 2 3 4 5 6 7 8 9", so when you run srctool for individual instruments you will currently output: 020_SourceSpec.fits, 220_SourceSpec.fits, 820_SourceSpec.fits. Therefore when the next command is run for the next instrument it will try to output files called 020_SourceSpec.fits and 820_SourceSpec.fits, which already exist. So it errors because it can’t write out the file.

Have added commands to remove these extra files.

Have also added checking of eSASS version in utils fixed a bug where an error was generated if ciao was not initialised.

@HallJoseph HallJoseph requested a review from DavidT3 November 21, 2024 09:45
@HallJoseph HallJoseph self-assigned this Nov 21, 2024
Copy link
Owner

@DavidT3 DavidT3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one, thanks very much for fixing that XGA-eROSITA bug! And spotting the annoying Chandra behaviour we introduced.

xga/generate/esass/spec.py Show resolved Hide resolved
xga/utils.py Outdated Show resolved Hide resolved
xga/utils.py Outdated Show resolved Hide resolved
xga/utils.py Outdated Show resolved Hide resolved
xga/utils.py Outdated Show resolved Hide resolved
xga/utils.py Outdated Show resolved Hide resolved
…t_out' variable when there is no viable install. For PR #1269
xga/utils.py Outdated Show resolved Hide resolved
xga/utils.py Outdated Show resolved Hide resolved
Copy link
Owner

@DavidT3 DavidT3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great - sorry this took so long. thanks for fixing the eSASS behaviours!

@HallJoseph HallJoseph merged commit 20e38c1 into feat/integrateMultiMiss Dec 5, 2024
1 check passed
@HallJoseph HallJoseph deleted the bug/fixSrctoolOutput branch December 5, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants