-
Notifications
You must be signed in to change notification settings - Fork 38
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
Muveto + hitlet fixes #355
Conversation
…into scada_interface
Reset mongo registry for chunk_i == 0 and format comments
…into scada_interface
@WenzDaniel , let me know when ready. I would appreciate if you un-draft when this is the case. |
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 think I'm fine with this PR. The overwrite_parents_end
feels a bit patchy and also don't know if such an option would be useful for other experiments. I think another way around would be to have the neutron veto plugins child_ends_with = _nv
and have the plugin recognize that we we should replace that with _mv
.
Haven't tested the code itself, let me know if you think I need to try to break it.
Thanks for the changes, haven't looked at them very detailedly but I think this will require some changes on straxen. Can you explain what we will need to change, will e.g. _he channels now need both attributes? When will you need to update which? Also, perhaps this is good to add to the documentation. Finally, I think the tests are also not using the convention used here. I can imagine that a deprecation-phase might make sense as otherwise everything starts breaking at once. |
Sorry my fault I should have turned it into a draft again. You are right, it requires some more modifications also in XENONnT/straxen#287 |
Hej Joran, this morning I had an idea how to simplify the whole child_plugin business. I removed the whole thing about Plugin side:
Although, I also updated the documentation and tests. Further, I addressed your request of adding a test for the |
Thanks Daniel! This looks much cleaner, thanks a lot! To put the icing on the cake, perhaps can you also update the https://strax.readthedocs.io/en/latest/advanced/plugin_dev.html? I think it deserves a separate heading as it's quite different than all the other types. In fact there is no such thing as a The travis failing is odd on 3.6, it claims numpy incompatibility between pandas an py36. Don't know if it will persist. Perhaps we need to fix numpy before pandas as a requirement. |
Okay, I added an example and some more words. |
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 a lot. It's really nice that you took the effort to write such a clear example.
Would you say that it makes more sense to put Plugin types
before Plugin inheritance
. I would be inclined to argue so but its up to you, feel free to merge.
I was thinking the very same to be honest :D But was not sure either. I will change it |
What is the problem / what does the code in this PR do
This PR changes two things:
threshold_parentending
can now be changed intothreshold_childending
instead ofthreshld_parentending_childending
. I also added some additional comments in the code to make things a bit easier to understandable.divided by zero
bug infwxm
which can occur for some irregular data. The corresponding test is also updated. Further, I restructured the function a bit for better readability/logic.