spacetelescope / imexam

imexam is a python tool for simple image examination, and plotting, with similar functionality to IRAF's imexamine
http://imexam.readthedocs.io
BSD 3-Clause "New" or "Revised" License
74 stars 45 forks source link

Fix failing test / PEP8 #232

Closed larrybradley closed 2 years ago

larrybradley commented 2 years ago

Also fixes the deprecation of numpy datatype aliases.

sebastic commented 1 year ago

ccbc1f94ff5b4a6df2fe10b8e766effd9c7b8326 missed the docs:

--- a/docs/imexam/walkthrough.rst
+++ b/docs/imexam/walkthrough.rst
@@ -145,7 +145,7 @@ You can also load a numpy array directly
 and display it to our viewer::

     import numpy as np
-    array = np.ones((100,100), dtype=np.float) * np.random.rand(100)
+    array = np.ones((100,100), dtype=float) * np.random.rand(100)
     viewer.view(array)
     viewer.zoom()  # by default, zoom-to-fit, or give it a scale factor