- Notifications
You must be signed in to change notification settings - Fork269
NF Operator class#1014
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
NF Operator class#1014
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This is a draft for community feedback.I would like to know1. Are there header/affine check functions that already exist in nibabelthat I can reuse?2. more efficient way to add more operators?I have to admit I am not super familiar with a lot of tools related toclass object that comes with python.
pep8speaks commentedMay 6, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Hello@htwangtw, Thank you for updating! Cheers! There are no style issues detected in this Pull Request. 🍻 To test for issues locally, Comment last updated at 2021-06-21 13:21:22 UTC |
codecovbot commentedMay 6, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report
@@ Coverage Diff @@## master #1014 +/- ##==========================================+ Coverage 92.26% 92.29% +0.03%========================================== Files 100 101 +1 Lines 12201 12265 +64 Branches 2134 2144 +10 ==========================================+ Hits 11257 11320 +63 Misses 616 616- Partials 328 329 +1
Continue to review full report at Codecov.
|
Hi@htwangtw, I'm interpreting the |
I found the draft function not particular meaningful to me so I just make it a normal PR...
|
Nope. No avoiding it. The only other way to do it would be by allowing
It's a valid IEEE754 value. You pays your money, you takes your chances.
I'm not sure what the
You could do something like: classOperableImage:def_binop(self,val,*,op): ...def_unop(self,*,op): ... |
htwangtw commentedJun 21, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Hey@effigies - I tried to add some |
Uh oh!
There was an error while loading.Please reload this page.
Closes#939.
This is a draft for feedback. Any suggestion is welcome!
I am not very familiar with python class so please let me know if there's things in python I haven't taken advantage of already. I would like to know:
nibabelthat I can reuse?__and__ = partial(_op, op=operator.__and__)To-do
fslmathsas a reference dealing with masking 4D array with 3D image