European-XFEL / karabo_data

Python tools to read and analyse data from European XFEL
https://karabo-data.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
13 stars 7 forks source link

Use metres for geometry internals #193

Closed takluyver closed 5 years ago

takluyver commented 5 years ago

Currently, the geometry machinery works with 'pixel units', following CrystFEL's format. This is hard to follow when pixels are not square, as for DSSC. This changes it to use metres internally.

All input and output still happens in the same units by default; this is only changing the internals. And it only changes the parts handling exact geometry: the 'snapped' geometry still works in pixels, because it's indexing into an array.

This is up for discussion. It's somewhat more code to work with, but I think it's marginally easier to think about it in metres.

Fixes #160.

tmichela commented 5 years ago

LGTM