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
Let xedocs to handle avg seg and seg partitioning #1371
Conversation
@GiovanniVolta Thanks for the PR! It looks fine for me as the dates and values are correct. But I'm wondering should we also replace the avg SEG? For now only the partitions are replaced. |
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.
Another comment: I understand that the tests may fail because of not updated xedocs and other relevant repos. Could you provide the dependencies between them and point out which PRs we should use to test together? Thanks a lot
For the following test you have to be on correction seg_partition branch and on xedocs se_gain_partition_schema branch Note that for these test I have specified where to fetch the data. So basically, this is what the new global version will look like. I have also tested the online context, and it works well for the partitioning definition. For AB and CD values, we don't have to worry since it is handled by the plugin itself here (this should reply to your first question @yuema137) |
|
I thought we discussed yesterday that github does not have access to our mongo database so the URLs could not be set to xedocs? |
@GiovanniVolta Thanks for the explanation. So, in my understanding, the `single_electron_gain_partition' config already contains the SEG values.
In that case, to avoid confusion, should we remove those two configs? It seems that they are set by CMT
The current practice looks like a mixture of CMT and xedocs which is not ideal. So could you look into this? Thanks a lot |
Hey @yuema137, |
@flammhead asked me if these changes and the release of a new version of xedocs will affect the data lineage. My naive answer is only above the event level. The Strax/staxen version has not been changed, and the lineage does not care about the xedocs version. |
The relevant PRs in xedocs and correction have been merged! We are good to go imo |
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.
Thanks @GiovanniVolta ! Now it's clear to me and I think we can go ahead to merge.
What does the code in this PR do / what does it improve?
Changed how to handle the TPC partition for AB and CD SEG and avg SEG.
Relevant for xedocs PR#120 and correction PR#273
Can you briefly describe how it works?
The partition AB is distinguished from CD based on a linear and a radial cut on the (xy) plane. For the two partitions, we have different average SE gains.
We have add two schemas, one for the definition of AB/CD and one for the avg_se_gain. Here they are implemeneted.
Can you give a minimal working example (or illustrate with a figure)?
Please include the following if applicable: