-
Notifications
You must be signed in to change notification settings - Fork 4
Rejig PD_CALIB_XCOORD #197
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
Conversation
|
The first issue in this example is that The second issue is that the overall category has no explicit link to the non-overall category. So if these two loops appeared in different blocks, we don't know that they are talking about the same thing. How to fix this? If we want the overall information to be linked with the point-by-point information, then we link to |
|
Are we looking at the same version?
. I think this structure is essentially what you said? . I think the key thing is that we need to specify the detector_id in both the calibration and unknown data to act as the link. Here's a more fully fleshed version, with an instrument:
I think that works. |
|
Sorry , my mistake, I hadn't realised the example was in together with the massive rearrangement of PCX/O! Will review carefully now. |
|
Also, in light of our previous discussion on PEAK keys and data items, I probably need to rethink the keys here.
|
jamesrhester
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just waiting for resolution of the pd_instr, pd_instr_detector linkage to understand whether or not that will affect the contents of pd_calib_xcoord_overall.
my current proposal is in #204; |
It should not be a key; the detectors can exist independent of the instrument on which they're fixed for a particular measurement. |
…owder_Dictionary into rejig-PD_CALIB_XCOORD
now that detector_id is no longer also a proxy for channel
|
Data names |
|
This is also the case in |
|
@rowlesmr wrote:
In all seriousness, the |
|
Ok, I didn't realise that. That is a fair concern. |
|
Definitely a problem if two data names look the same when |

PD_CALIB_XCOORDandPD_CALIB_XCOORD_OVERALLwere designed as a thing to exist alongsidePD_CALIBRATION- wherePD_CALIBRATIONgave a human-readable equation to calibrate detector channel or position or whatever to 2theta or energy or d-spacing or whatever,PD_CALIB_XCOORDwould give a machine-readable equivalent; enumerating this position = that d-spacing, or something. Except that it couldn't really do that. I'm pretty sure that it now can.The way that it is supposed to be used is:
Is this the correct way to link the calibration loop to the data to which it was (or should be) applied? or do I need to make an separate data item that holds a
_pd_calib_xcoord_overall.idvalue?*There is a fall-back in the category description that if the points in the diffractogram to be calibrated don't exist in the calibration loop, then you need to interpolate.