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

SST1RSoXSDB: fix bug described in #121 #122

Conversation

pbeaucage
Copy link
Collaborator

See description in #121, this changes the dimension hinting code in the following ways:

  1. instead of looking at std(scan_values) / mean(scan_values) it now uses abs(std(scan_values)/(max(scan_values)-min(scan_values))

  2. time is now a default hinted dimension, so adds a kwarg that by default doesn't include it

  3. there might be a few warning/other fixes that don't impact anything but API compatibility in this fix.

One question is whether tests should cover dimension hinting, i.e, that scan # 'x' is really energy/pol and 'y' is sam_x/sam_y. Just need test data on the public server for that.

@pbeaucage pbeaucage requested a review from EliotGann April 3, 2024 02:06
@pdudenas pdudenas self-requested a review April 4, 2024 17:17
@pdudenas pdudenas merged commit 6603dd4 into main Apr 4, 2024
28 checks passed
@pbeaucage pbeaucage deleted the 121-bug-sst1rsoxsdb-scan-hinting-breaks-if-a-scanned-axis-has-negative-value branch April 5, 2024 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: SST1RSoXSDB scan hinting breaks if a scanned axis has negative value
2 participants