Closed FilipeMaia closed 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.
EventTranslator should be smart enough to allow direct access to native (raw) sources for those that know what they are doing.