-
Notifications
You must be signed in to change notification settings - Fork 33
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
Debug for EventwBayesClass
because peaks overlapping
#1417
Conversation
However, this plugin is not widely used. |
I am wondering whether we should not remove this plugin. Is it still being maintained? I do not think so. |
For the reproducibility of old results, we still need it. I think we can keep it for a while. |
Old results use old container no? Otherwise it is not reproducible anyhow? |
Yes. You are right. I mean the reproducibility of the codes in other repo which still uses this plugin. |
Changes unknown |
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 to me. If we want to keep it for reproducibility we can merge it.
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.
In the previous code, mask
may have a larger length than mask_ev
(and events
) when there are duplicated 'time' in peaks
. The PR fixes this problem by looping over split peaks together with events, and only assigning the probability when a valid peak index is found. It looks good to me.
* Update pytest.yml (#1431) * Update pytest.yml Specify the strax to be v1.6.5 * add install base_env * Add force reinstall * Update definition of the SE Score (previously the SE density) for SR1 WIMP (#1430) * Update score definition. Modify file names. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Modify file names in the initialization file. * Rearrangenames. Move sr phase assignment elsewhere. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add url configs and modify code style. * Modify the parameter names. * Fix data type in url config. * Add docstring for the eps used to prevent divide by zero. * Reformmated with precommit. * Add docstrings. Remove redundant code. * Add docstring for the 2D Gaussian. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Dacheng Xu <dx2227@columbia.edu> * Copy #1417 (#1438) * Bump to v2.2.6 (#1441) * Bump version: 2.2.4 → 2.2.6 * Update HISTORY.md * Constraint strax version --------- Co-authored-by: Kexin Liu <lkx21@mails.tsinghua.edu.cn> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Before you submit this PR: make sure to put all operations-related information in a wiki-note, a PR should be about code and is publicly accessible
What does the code in this PR do / what does it improve?
Debug
EventwBayesClass
. In very rare cases the peaks'"time"
can be the same, so simply use the matching between timestraxen/straxen/plugins/events/event_w_bayes_class.py
Lines 29 to 30 in c618480
Can you briefly describe how it works?
Mimicking what
EventAmbience
does, split the peaks for each event and assign the fields based on indices:straxen/straxen/plugins/events/event_ambience.py
Lines 42 to 57 in c618480
The results are not changed so I will not update the
__version__
.Can you give a minimal working example (or illustrate with a figure)?
Please include the following if applicable:
Notes on testing
All italic comments can be removed from this template.