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

Background data files with only one time bin don't work as expected in OSPEX #156

Open
samaloney opened this issue Apr 6, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@samaloney
Copy link
Collaborator

E.g. this file solo_L1_stix-sci-xray-cpd_20210521T013011-20210521T031011_V01_2105210020-54527.fits essentially the mrdfits procedure seems to drop dimension of size one or at least compared to python. The count array should have dimensions 32, 12, 32, 1 but after reading it has dimension 32, 12, 32. I found that by hacking the shape data_str_bk.counts = reform(data_str_bk.counts, [32,12,32,1]) of the counts array before line 114 of stx_convert_science_data2ospex.pro it worked as expected.

This could be a more wide spread issue need to test how data with one detector, pixel, or energy work or is it only leading or trailing dimension of size 1 that are dropped.

@samaloney samaloney added the bug Something isn't working label Apr 6, 2023
@samaloney samaloney changed the title Background data files with only one time bin don't work in spectroscopy pipeline Background data files with only one time bin don't work as expected in OSPEX Apr 6, 2023
@ennosigaeus ennosigaeus added this to the Version 0.6.0 milestone Oct 21, 2024
@samaloney samaloney removed this from the Version 0.6.0 milestone Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants