Skip to content
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

Scipy deprecation #3225

Merged
merged 3 commits into from Sep 7, 2023
Merged

Conversation

jlaehne
Copy link
Contributor

@jlaehne jlaehne commented Sep 6, 2023

Description of the change

Replace the deprecated usage of scipy.misc by scipy.datasets in the documentation.
See https://docs.scipy.org/doc/scipy/reference/generated/scipy.misc.ascent.html

Progress of the PR

  • Change implemented (can be split into several points),
  • add an changelog entry in the upcoming_changes folder (see upcoming_changes/README.rst),
  • Check formatting changelog entry in the readthedocs doc build of this PR (link in github checks)
  • ready for review.

@codecov
Copy link

codecov bot commented Sep 6, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (fa7a7e0) 81.31% compared to head (201e00a) 81.31%.

Additional details and impacted files
@@                 Coverage Diff                 @@
##           RELEASE_next_major    #3225   +/-   ##
===================================================
  Coverage               81.31%   81.31%           
===================================================
  Files                     173      173           
  Lines                   24206    24206           
  Branches                 5623     5623           
===================================================
  Hits                    19683    19683           
  Misses                   3223     3223           
  Partials                 1300     1300           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jlaehne jlaehne added this to the v2.0 Split milestone Sep 6, 2023
@@ -36,8 +36,8 @@ added before calling :py:meth:`~.roi.BaseInteractiveROI.interactive`.

.. code-block:: python

>>> import scipy.misc
>>> im = hs.signals.Signal2D(scipy.misc.ascent())
>>> import scipy.datasets
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simplify to the following here in other places as elsewhere, scipy.ndimage is also used.

Suggested change
>>> import scipy.datasets
>>> import scipy

@ericpre ericpre merged commit 024bd2f into hyperspy:RELEASE_next_major Sep 7, 2023
21 of 22 checks passed
@jlaehne jlaehne deleted the scipy-deprecation branch September 8, 2023 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants