-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DREAM detector diagnostics tool #178
Comments
After discussion with @celinedurniak, we concluded that probably the most useful and flexible way of approaching this is to make helper function to manipulate and shape the loaded data into a form which makes it easy to then just plot it using default First off, it seems it would be useful to have the loader return the data in the file in the form of a DataGroup with the entries for the instrument Secondly, it will be essential to view the data long its logical ( Below are some examples of pseudo-code we came up with for usability: from ess import dream
from ess.dream import tools as tls
dg = dream.load('filename.nxs')
dg.keys() # 'mantle', 'end-cap', ...
mantle = tls.to_logical_dims(dg['mantle'])
# or ?
dg = tls.to_logical_dims(dg) # -> new DataGroup
# Additional helpers? calls to_logical_dims internally and sums over module and segment?
tls.wire_vs_strip(dg['mantle']).plot()
# Could then do
pp.slicer(mantle.sum('module'), keep=['strip', 'wire'])
# To show both mantle and endcap at once ?
both = sc.concat([dg['mantle'], dg['endcap']], dim='pixel') |
Yes, this is definitely the plan. Note that we have previously requested from ECDC to store NXdetector with the logical dims, we should follow-up on the status of that. |
This for now cannot easily be done for the Nexus files for DREAM because we lack the information about logical dimensions. The list of pixels for each bank has only one dimension. |
I think we will end up with a DREAM file loader (wrapper for scippnexus) anyway. For now, we can manually inject the shape info there, i.e., reshape/fold after loading. |
ECDC have decided to not provide information about logical dimensions. We will therefore have to hard-code this in our loader. |
https://confluence.esss.lu.se/display/DAM/DREAM+-+Detectors+diagnostic+tools
The text was updated successfully, but these errors were encountered: