Skip to content

Commit

Permalink
Merge pull request #6 from SaraOgaz/skimageimport
Browse files Browse the repository at this point in the history
Fixed skimage.filters import, was deprecated
  • Loading branch information
pllim committed Jun 3, 2016
2 parents 7908f4e + 5bd6be0 commit fcf6777
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion defsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# include_dirs = [pythoninc,numpyinc] ) ]

setupargs = {
'version': '2.0.0',
'version': '2.0.2',
'description': 'Python Tools for ACS Data',
'author': 'Matt Davis, Warren Hack, Norman Grogin, Pey Lian Lim, Sara Ogaz, Leornado Ubeda, Mihai Cara, David Borncamp',
'author_email': 'help@stsci.edu',
Expand Down
15 changes: 9 additions & 6 deletions lib/acstools/satdet.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
Only tested for ACS/WFC FLT and FLC images, but it should
theoretically work for any instrument.
Requires skimage version 0.11.x or later.
:func:`skimage.transform.probabilistic_hough_line` gives
slightly different results from run to run, but this should
not matter since :func:`detsat` only provides crude
Expand Down Expand Up @@ -122,6 +124,7 @@
# Nov 03, 2015 - PLL - Adapted for acstools distribution. Fixed bugs,
# possibly improved performance, changed API.
# Dec 07, 2015 - PLL - Minor changes based on feedback from DMB.
# May 24, 2016 - SMO - Minor import changes to skimage
#
from __future__ import (absolute_import, division, print_function,
unicode_literals)
Expand All @@ -141,10 +144,10 @@
from astropy.stats import biweight_midvariance, sigma_clipped_stats
from astropy.utils.exceptions import AstropyUserWarning
from scipy import stats
from skimage import filter as filt
from skimage import transform
from skimage import morphology as morph
from skimage import exposure
from skimage.feature import canny

try:
import matplotlib.pyplot as plt
Expand All @@ -153,8 +156,8 @@
warnings.warn('matplotlib not found, plotting is disabled',
AstropyUserWarning)

__version__ = '0.3.1'
__vdate__ = '25-Apr-2016'
__version__ = '0.3.2'
__vdate__ = '24-May-2016'
__author__ = 'David Borncamp, Pey Lian Lim'
__all__ = ['detsat', 'make_mask', 'update_dq']

Expand Down Expand Up @@ -194,9 +197,9 @@ def _detsat_one(filename, ext, sigma=2.0, low_thresh=0.1, h_thresh=0.5,

# get the edges
immax = np.max(image)
edge = filt.canny(image, sigma=sigma,
low_threshold=immax * low_thresh,
high_threshold=immax * h_thresh)
edge = canny(image, sigma=sigma,
low_threshold=immax * low_thresh,
high_threshold=immax * h_thresh)

# clean up the small objects, will make less noise
morph.remove_small_objects(edge, min_size=small_edge, connectivity=8,
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = acstools
version = 2.0.1
version = 2.0.2
author = Matt Davis, Warren Hack, Norman Grogin, Pey Lian Lim, Sara Ogaz, Leornado Ubeda, Mihai Cara, David Borncamp
author-email = help@stsci.edu
summary = Python Tools for ACS (Advanced Camera for Surveys) Data
Expand Down

0 comments on commit fcf6777

Please sign in to comment.