-
Notifications
You must be signed in to change notification settings - Fork 45
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
BlueprintInput deepcopies inputs at initialization #358
Conversation
…s2bids into test_check_trigger_amounts
Co-authored-by: Taylor Salo <[email protected]>
Ah, so it wasn't showing up in the tests before, my mistake |
It's failing because you're comparing a variable called |
Sorry about that. I couldn't put a comment down where the assert should have gone, but I didn't think the variable hadn't been declared yet where I did comment. |
wait so should it pass once the variable is declared? |
If the original variable is stored in the object (i.e., the bug persists), then it will fail. If it isn't then it should pass. |
okay I think this will do then |
Then make it ready for review 😉 |
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.
Execution looks good to me!
However, there's style-related point to address: can you fix the library to pass style checks and adjust the order of the imports in physio_obj
?
I'm going to prepare all the rest to be able to merge this in.
Now that I think about it: @vinferrer could you make the |
Could you please fix the style? We already have a non-passing badge on the README, we should avoid a second one 😅 |
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.
Thank you @vinferrer !
My approval is dependent on passing all tests. Please fix the style issues.
(and possibly next time don't introduce them 😉)
The changes required for the test to pass are in the PR #349, which is waiting for your review @smoia 😉 |
…est_check_trigger_amounts
Codecov Report
@@ Coverage Diff @@
## master #358 +/- ##
=======================================
Coverage 94.80% 94.80%
=======================================
Files 8 8
Lines 808 809 +1
=======================================
+ Hits 766 767 +1
Misses 42 42
|
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.
LGTM!
(@tsalo if you're happy and you know it, merge this in! 👏 👏 ) |
🚀 PR was released in |
Closes #314
As described in #314 ```check_trigger_amounts
method inside the
BlueprintInput`` class was modifying the attributes of the objects and at the same time modifying the inputs to the class initialization. Now at the initialization the inputs are deepcopied to avoid these problemsProposed Changes
BlueprintInput
inputs at initializationChange Type
bugfix
(+0.0.1)minor
(+0.1.0)major
(+1.0.0)refactoring
(no version update)test
(no version update)infrastructure
(no version update)documentation
(no version update)other
Checklist before review