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
Simplify get_components #510
Simplify get_components #510
Conversation
Anything else you changed? It is hard to tell with all those renaming, |
Not much no, I changed that twice and added a small test. I'm half doubting if such a cleanup of code is worth changing the git history but on the other hand, it took me some time to understand the code because of these naming conventions. What do you think? |
I think it is fine. I was just wondering if there is anything I have to pay special attention to. |
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.
Okay I think it is fine. Only two things could we name it target
inside cache(target)
instead of target_i
? Inside the function there is not any loop so I think target_i makes it a bit confusing. Instead I would suggest to use target_i in lines 869 and 870.
This PR also affects multiple other PRs like #512 and #509. Which one to merge first?
One question so it seems like you would like to use name_i as the new convention when ever we loop over something. Is this correct? This is fine with me, but what would be the convention for the corresponding index in that case? e,g "ind_target"? We just should agree on something.
sure, any deps should be easy to solve
So the reason I used |
Okay I see no, lets leave target_i then. |
* Prepare test for double_dependency issue * Added lock conditions with logger informations. * Added test for double dependency. * Add small counter to fix double dependency problem * Add test to trigger multiprocess error * Add pytestdebug log to ignored files * Add loader plugins to processor components * Modify inline plugin to fix loader bug * Add comments, add tests if data is stored * Change naming according to #510 * Change naming according to #510 * Add comment and logging * Fix flag * Move mailbox up * Update flow freely to account for double dependency plugins * Added log statement * Fixed f-string in logging * Update strax/mailbox.py * Add comment Co-authored-by: Joran Angevaare <jorana@nikhef.nl>
What is the problem / what does the code in this PR do