FXIhub / hummingbird

Monitoring and Analysing flash X-ray imaging experiments
http://fxihub.github.io/hummingbird
BSD 2-Clause "Simplified" License
16 stars 14 forks source link

Make it easier to work with raw sources #136

Closed FilipeMaia closed 2 years ago

FilipeMaia commented 2 years ago

EventTranslator should be smart enough to allow direct access to native (raw) sources for those that know what they are doing.

FilipeMaia commented 2 years ago

This actually already possible with the euxfel or the lcls backend due to the final part of the translate function in the respective translator which "checks if the key matches any of the existing keys in the event". Here's an exampling of accessing a native AGIPD record: print(evt['SPB_DET_AGIPD1M-1/DET/0CH0:xtdf']['image.data'].data.shape) Just remember that these native records will not have been reshaped by hummingbird!

And now a random motor: print(evt['SPB_IRU_INLINEMIC/MOTOR/MIC_AY']['actualPosition.value'].data)

072d0f1 should make this significantly more robust.