Open
Conversation
Make assumptions that the fast depends on the slow which depends on module offset, and none of these add rotations into the mix (fair, for a DECTRIS detector) Resolves #865
In addition to allowing Start_angle / Angle_increment to define the scan information: this is what is in use at APS S21.
Collaborator
Author
|
Additional: this instrument used to live at SBC I think so gets caught in from __future__ import annotations
import sys
from dxtbx.format.FormatCBFMiniPilatus import FormatCBFMiniPilatus
class FormatCBFMiniPilatus3AOS19ID6MSN132(FormatCBFMiniPilatus):
"""A class for reading mini CBF format Pilatus3 images for 6M SN 132 @ APS19ID."""
@staticmethod
def understand(image_file):
"""Check to see if this looks like an Pilatus mini CBF format image,
i.e. we can make sense of it."""
header = FormatCBFMiniPilatus.get_cbf_header(image_file)
for record in header.split("\n"):
if (
"# Detector" in record
and "PILATUS3" in record
and "S/N 60-0132" in header
):
return True
return False
def _goniometer(self):
"""19ID has reversed goniometer"""
return self._goniometer_factory.single_axis_reverse()
if __name__ == "__main__":
for arg in sys.argv[1:]:
print(FormatCBFMiniPilatus3AOS19ID6MSN132.understand(arg))which is no longer correct - I have asked for the timestamp when the switch occurrred |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Support Pilatus format for Sector 21 / LS-CAT at the APS.
They use
Omega/Omega_incrementin place ofStart_angleandAngle_increment