-
Notifications
You must be signed in to change notification settings - Fork 0
Trying to fix touching_windows
bug
#333
Conversation
I did a dirty workaround to make |
Maybe we can also try to sort the windows and things first, and finally sort them back, like: |
I am not sure why this check non-negative length is related to sorting? Can you please explain a bit more? |
nvm, I was wrong. |
Thanks Lanqing and Dacheng, After reviewing the PR with Lanqing, we realized a few points which I will summarize here:
|
Thanks @JYangQi00 for the summary. I am trying to improve a bit. When this negative length thing happen (which is quite often in our current wfsim), we manually overwrite the problematic |
I am planning to make a pema release so that we don't get annoyed by the failed checks in base_environment. Any concern here? |
after this merged? |
Yes
On Sep 11, 2023, at 22:39, Dacheng Xu ***@***.***> wrote:
I am planning to make a pema release so that we don't get annoyed by the failed checks in base_environment. Any concern here?
after this merged?
—
Reply to this email directly, view it on GitHub<#333 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALG57AUP4QPWWT3SYN2CGE3XZ5ZITANCNFSM6AAAAAA4SIC7MA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Sorry I meant pema release. Not new tag version of base_environment. |
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.
Instead of finding the bad event numbers and looping, can't we just do allpeaks1[allpeaks1['endtime']<0]=-1
?
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. The idea why I didn't do this is because the following imaginary case. There is a peak in one simulated event, either S1 or S2, turns out having negative length by mystery, we wanted to make sure both S1 and S2s from that event has been tagged "bad". Otherwise, later in analysis by filtering out those bad event_number==-1
, you will have S1 or S2 only event, which is additionally confusing.
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.
I see, thanks! Then we can merge
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.
Hi Lanqing, everything looks good to me and I think we can merge, but I think it may be more efficient to make the suggested change
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 is the problem / what does the code in this PR do
Currently
pema
is not usable because of a bug shown instrax.touching_windows
here. See here for the issue. This PR tries to understand what happened and bypass the bug.Can you briefly describe how it works?
It seems to be a
numba
problem that, the_check_objects_non_negative_length
will lead to problems, even though there is no negative length at all.Can you give a minimal working example (or illustrate with a figure)?
Please include the following if applicable:
Please make sure that all automated tests have passed before asking for a review (you can save the PR as a draft otherwise).