-
Notifications
You must be signed in to change notification settings - Fork 2
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
How to save numbers needed to create the spectra #52
Comments
One low-rent way is to use |
These are calibration values determined at the beamline e.g. by a calibration scan done by the staff, but that need to be applied to all the downstream data processing. @awalter-bnl suggested they could be assigned detector attributes One could imagine pseudomotors as well? Not that I'm necessarily advocating this. These are most of the keyword arguments into: elastic_pixel : float -- databroker |
I see. I like @awalter-bnl's suggestion of making that part of what the detector reports as configuration. |
I added a description of the list of values we are talking about in the comment above. |
Some quick input from @tacaswell Consider whether the background should be saved into the desriptor or put into a different data stream. |
I think we should think carefully about this. They are not detector attributes |
Let’s get together next.week, I don’t like saving info in a run that is the result of an analysis. It seems like a really bad idea to maintain that state in BS |
I am still in favour of making them detector attributes and setting them to be read at configuration time. This way they will be saved in the current 'event_descriptor' document under the 'detector' information in databroker and easily accessible in that way. It also ensures that they are not written unnecessarily when a scan is performed that does not include this detector.
I am not in favour of creating a seperate new descriptor document purely for these values, I think they should be associated with the detector, and the most logical way to do that is through detector configuration attributes. While they are technically not attributes of the detector they are values that are required to analyze data from this detector. So tying them to the detector configuration attributes makes the most sense to me. At any rate it should be possible to not use these default values at analysis time. I am happy to meet next week to dicuss, my outlook is up to date. |
Saving dictionary of values defining the numbers required to make the spectrum
The text was updated successfully, but these errors were encountered: