-
Notifications
You must be signed in to change notification settings - Fork 208
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 deprecation warning #2327
Fix deprecation warning #2327
Conversation
…d to avoid VisibleDeprecationWarning.
…y deprecation warning: "DeprecationWarning: scipy.real is deprecated and will be removed in SciPy 2.0.0, use numpy.real instead".
…tifit in the test suite.
@@ -250,7 +250,8 @@ def setup_method(self, method): | |||
def test_lines_intensity(self): | |||
s = self.s | |||
m = s.create_model() | |||
m.multifit() # m.fit() is just too inaccurate | |||
# HyperSpy 2.0: remove setting iterpath='serpentine' | |||
m.multifit(iterpath='serpentine') # m.fit() is just too inaccurate |
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 know it's an old comment, but can we quantify what we mean by # m.fit() is just too inaccurate
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.
Indeed, this is a good point, that sounds odd to me and it would be good to do something about it!
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.
It look to me that this statement is not correct now and we can simply removed it. I added a test to confirm this but I think we could also remove this test comparing fit
and multifit
.
This comment was commited 4 years ago (5b3b92f) and the commit message doesn't say what could the reason for this comment, so I don't see any reason to keep it, unless it is possible to demonstrate that it doesn't work.
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.
If the test is cheap to run, I'd vote to keep it.
…eprecation_warning # Conflicts: # hyperspy/misc/material.py
Progress of the PR
iterpath='serpentine'
in the test suite to avoid deprecation warning,scipy.real