-
Notifications
You must be signed in to change notification settings - Fork 17
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
Fix bugs in to_raman_shift #140
Conversation
Is this ready for review? |
I still have to fix the tests. Also currently, it runs the |
# create and return new signal | ||
else: | ||
s2 = self.to_invcm(inplace=inplace, jacobian=jacobian) | ||
s2.axes_manager.set_axis( | ||
invcmaxis, self.axes_manager.signal_axes[0].index_in_axes_manager | ||
) | ||
s2.data = s2.isig[::-1].data |
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.
Is there a way to not have to repeat the same lines of code on both sides of the if statement (code not DRY)? What if you set your copy as your signal in this case of inplace=True?
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.
Probably an if/else statement could decide whether to operate on a copy of the signal or a pointer to self ... I would however leave that consolidation to a separate PR. I will open an issue.
Description of the change
The conversion to Raman shift (relative wavenumber) is not working as it should:
Raman Shift
Jacobian=False
defaultProgress of the PR