#641 2D channel and energy edges, with filtering options#691
#641 2D channel and energy edges, with filtering options#691
Conversation
In this draft, a new structure is proposed for the extracted energies and channels. New features include the use of some datasets statistical errors and optional filtering regarding the quality of the data or the grouping of channels. The approach for the grouping, however, is not complete yet. For now, It is working with channels grouped to get a minimum number of counts. Grouping with binning factors shall be added in future releases...
|
Thank you Pierre. We will look at this important PR. |
thjsal
left a comment
There was a problem hiding this comment.
I did not look yet into all the details, but it seems clear that this a currently backward-incompatible update. If keeping it like this, we should do a major version bump to X-PSI v4. Or modify all the functions so that they are backward-compatible.
changelog.d/691.changed.rst
Outdated
| @@ -0,0 +1 @@ | |||
| Review the structure of the energy and channel edges, and allow the use of statistical errors and optional filtering from data quality and/or grouping of channels. | |||
There was a problem hiding this comment.
I think if you modify the code, it is not a "review". Thus, I suggest saying either "Changed" or "Modified" instead.
There was a problem hiding this comment.
The changelog file has been updated, with the ability to choose the structure of the edges.
There was a problem hiding this comment.
I see you changed "Review" to "Propose" but I think at least before merging this should be changed to something else, since it will not be a proposal anymore at that point. I think the changelog should describe what has changed. Not what has been proposed to be changed.
New version for this PR, allowing to use the original structure for the energy and channel edges by default, and optionally the 2D structure if needed, notably because of data quality and grouping.
|
Thanks for the update @pstammler! The code appears now more backward-compatible to me. However, if executing the current Synthetic data notebook (https://xpsi-group.github.io/xpsi/Synthetic_data.html), I get the following error: |
|
The general idea looks good to me. But maybe a good idea would be to mention an example of how the 2D energy edges should look like (e.g. in the docstring). If I understand right, they should be something like
|
|
TO BE TESTED Example scripts
Notebooks
|
Maybe you should add the grpdata and the origdata parameters from the Data module in your SyntheticData class. |
|
Like this: class SynthesiseData(xpsi.Data): |
Yes that's the general idea. |
Or perhaps we can just add |
This seems to work (but needs to be tested thoroughly). The |
Bringing changes of main into branch #641
In this draft, a new structure is proposed for the extracted energies and channels. New features include the use of some datasets statistical errors and optional filtering regarding the quality of the data or the grouping of channels.
The approach for the grouping, however, is not complete yet. For now, it is working with channels grouped to get a minimum number of counts. Grouping with binning factors shall be added in future releases...