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: apply correctly binning to the pixel size used in the transformation matrices #229

Merged
merged 6 commits into from
Feb 3, 2022

Conversation

carnisj
Copy link
Owner

@carnisj carnisj commented Feb 3, 2022

Pull Request Template

Description

Use the binned detector pixel size to calculate the transformation matrices.

One needs to use detector.pixelsize_x (_y) instead of the unbinned pixel size. This bug was introduced when moving the properties pixelsize_x (_y) from the Setup class to the Detector class.

I added another modes.h5 with preprocessing=[1,2,2].
I will use it later to implement a high-level test about the interpolation (e.g. using the number of support voxels in the interpolated result)

Fixes #219

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How has this been tested?

Interpolation of the example dataset in an orthonormal frame works correctly now with preprocessing_binning = (1,2,2).

Checklist:

  • I have run doit and all tasks have passed

@carnisj carnisj changed the title Bug binning Bug: apply correctly binning to the pixel size used in the transformation matrices Feb 3, 2022
Copy link
Collaborator

@DSimonne DSimonne left a comment

Choose a reason for hiding this comment

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

Thanks for adding the doc change in FacetAnalyser

@carnisj carnisj merged commit 0e257bd into main Feb 3, 2022
@carnisj carnisj deleted the bug_binning branch February 3, 2022 20:01
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]
2 participants