-
Notifications
You must be signed in to change notification settings - Fork 46
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
Correctly set imageset_id column in integration #1762
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1762 +/- ##
==========================================
+ Coverage 67.14% 67.28% +0.13%
==========================================
Files 615 616 +1
Lines 69053 69061 +8
Branches 9616 9623 +7
==========================================
+ Hits 46365 46467 +102
+ Misses 20756 20652 -104
- Partials 1932 1942 +10 |
Co-authored-by: Markus Gerstel <2102431+Anthchirp@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cf. #1764
Co-authored-by: Markus Gerstel <2102431+Anthchirp@users.noreply.github.com>
This appears to not update any unintegrated reflections - is this information just permanently lost, at the moment? |
After discussion, we concluded that this is fine and I misinterpreted the wider context of the code. |
Currently, the
imageset_id
column is only output bydials.integrate
ifinclude_bad_reference=True
(which we turn on by default forxia2
). Fortunately the result is accidentally correct for integrating a single-sweep (due to the default null value of flex.int being 0) but wrong for multi sweep data.The fix is to actually set the
imageset_id
at the prediction stage ofdials.integrate
.To reproduce the bug, take any multi-sweep data and import together in dials.import
Now if you open the integrated files in the
dials.image_viewer
, currently all integrated reflections will be shown on the first imageset, and any unintegrated reflections are shown correctly on their imagesets. Ifinclude_bad_reference=False
(default fordials.integrate
) then the image viewer correctly works out which reflections belong to which image through theid
column.