-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
ENH: Support partial pathlength factors for each wavelength in Beer-Lambert law #12446
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
Conversation
|
Hello! 👋 Thanks for opening your first pull request here! ❤️ We will try to get back to you soon. 🚴 |
agramfort
left a comment
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.
can you add / update a test @scholzri ? thx
| ---------- | ||
| raw : instance of Raw | ||
| The optical density data. | ||
| ppf : float |
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.
this type is now wrong.
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 @agramfort , thank you for the hint, but I do not understand. Which type do you mean? Sorry, I am new to mne and python.
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.
ppf is not a float anymore here. You make it a list and actually it should be a tuple
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. Thank you for the explanation! I changed it.
I also modified the test for beer lambert law.
Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org>
larsoner
left a comment
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.
We should keep backward compatibility with float, too, which is easy enough to do I think -- see suggested edits!
This reverts commit cc5fe31.
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
|
Thank you for the input @larsoner |
larsoner
left a comment
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.
Looks good other than one thing I think we need to revert. I'll commit the change to get CIs working on everything but let me know if you think it should be 6.0 in the example!
|
🎉 Congrats on merging your first pull request! 🥳 Looking forward to seeing more from you in the future! 💪 |
|
Thanks @scholzri ! |
…ambert law (mne-tools#12446) Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org> Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
This pull request modifies the beer_lambert_law function to support partial pathlength factors per wavelength, as requested here by myself. The ppf's are now specified in a tuple and converted to a 2x1 array which than can be used in the equation.