Some ADSC Quantum beamlines write a complete ADSC header (TYPE=, PIXEL_SIZE,
DISTANCE, BEAM_CENTER_X/Y, per-frame OSC_START) followed by a d*TREK block.
Any DETECTOR_NAMES sent the file down the d*TREK path, which either refused it
(translation names it does not know) or read its vectors as a mirrored image:
the sweep then indexes at the right cell with the hand inverted - invisible to
R-free, but the anomalous map at the heavy-atom sites comes out negative.
The d*TREK path is now taken only for Rigaku's own headers, which carry
Data_type= in place of ADSC's TYPE=, as dxtbx decides it. On the affected sets
the anomalous peaks at the Se sites turn positive and R-free is unchanged;
d*TREK files with Data_type= are read as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HVeDQrPqZ52Tp6rzzZGxf3
(cherry picked from commit 06aad37a7f)