Commit 12050ae9 authored by Ole Streicher's avatar Ole Streicher

New upstream version 0.3.2

parent 690af6f3
0.3.2 (2017-03-31)
------------------
General
^^^^^^^
- Fixed file permissions in the released source distribution.
0.3.1 (2017-03-02)
------------------
......
Metadata-Version: 1.1
Name: photutils
Version: 0.3.1
Version: 0.3.2
Summary: An Astropy package for photometry
Home-page: http://photutils.readthedocs.io/
Author: The Photutils Developers
......
astropy-helpers Changelog
=========================
1.3.1 (2017-03-18)
------------------
- Fixed the missing button to hide output in documentation code
blocks. [#287]
- Fixed bug when ``build_docs`` when running with the clean (-l) option. [#289]
- Add alternative location for various intersphinx inventories to fall back
to. [#293]
1.3 (2016-12-16)
----------------
......
......@@ -70,6 +70,9 @@ class AstropyBuildDocs(SphinxBuildDoc):
self.warnings_returncode = False
def finalize_options(self):
SphinxBuildDoc.finalize_options(self)
# Clear out previous sphinx builds, if requested
if self.clean_docs:
dirstorm = [os.path.join(self.source_dir, 'api'),
......@@ -86,8 +89,7 @@ class AstropyBuildDocs(SphinxBuildDoc):
else:
log.info('Not cleaning directory ' + d + ' because '
'not present or not a directory')
SphinxBuildDoc.finalize_options(self)
def run(self):
# TODO: Break this method up into a few more subroutines and
......
......@@ -43,18 +43,24 @@ def check_sphinx_version(expected_version):
# Configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
'python': ('http://docs.python.org/3/', None),
'python': ('http://docs.python.org/3/',
(None, 'http://data.astropy.org/intersphinx/python3.inv')),
'pythonloc': ('http://docs.python.org/',
path.abspath(path.join(path.dirname(__file__),
'local/python3_local_links.inv'))),
'numpy': ('http://docs.scipy.org/doc/numpy/', None),
'scipy': ('http://docs.scipy.org/doc/scipy/reference/', None),
'matplotlib': ('http://matplotlib.org/', None),
'numpy': ('https://docs.scipy.org/doc/numpy/',
(None, 'http://data.astropy.org/intersphinx/numpy.inv')),
'scipy': ('https://docs.scipy.org/doc/scipy/reference/',
(None, 'http://data.astropy.org/intersphinx/scipy.inv')),
'matplotlib': ('http://matplotlib.org/',
(None, 'http://data.astropy.org/intersphinx/matplotlib.inv')),
'astropy': ('http://docs.astropy.org/en/stable/', None),
'h5py': ('http://docs.h5py.org/en/latest/', None)}
if sys.version_info[0] == 2:
intersphinx_mapping['python'] = ('http://docs.python.org/2/', None)
intersphinx_mapping['python'] = (
'http://docs.python.org/2/',
(None, 'http://data.astropy.org/intersphinx/python2.inv'))
intersphinx_mapping['pythonloc'] = (
'http://docs.python.org/',
path.abspath(path.join(path.dirname(__file__),
......
......@@ -3,7 +3,8 @@ $(document).ready(function() {
* the >>> and ... prompts and the output and thus make the code
* copyable. */
var div = $('.highlight-python .highlight,' +
'.highlight-python3 .highlight')
'.highlight-python3 .highlight,' +
'.highlight-default .highlight')
var pre = div.find('pre');
// get the styles from the current theme
......@@ -28,6 +29,7 @@ $(document).ready(function() {
var button = $('<span class="copybutton">&gt;&gt;&gt;</span>');
button.css(button_styles)
button.attr('title', hide_text);
button.data('hidden', 'false');
jthis.prepend(button);
}
// tracebacks (.gt) contain bare text elements that need to be
......@@ -38,20 +40,24 @@ $(document).ready(function() {
});
// define the behavior of the button when it's clicked
$('.copybutton').toggle(
function() {
var button = $(this);
$('.copybutton').click(function(e){
e.preventDefault();
var button = $(this);
if (button.data('hidden') === 'false') {
// hide the code output
button.parent().find('.go, .gp, .gt').hide();
button.next('pre').find('.gt').nextUntil('.gp, .go').css('visibility', 'hidden');
button.css('text-decoration', 'line-through');
button.attr('title', show_text);
},
function() {
var button = $(this);
button.data('hidden', 'true');
} else {
// show the code output
button.parent().find('.go, .gp, .gt').show();
button.next('pre').find('.gt').nextUntil('.gp, .go').css('visibility', 'visible');
button.css('text-decoration', 'none');
button.attr('title', hide_text);
});
button.data('hidden', 'false');
}
});
});
......@@ -319,7 +319,7 @@ array, which by design doesn't include increased noise on bright
pixels. To include Poisson noise from the sources, we can use the
:func:`~photutils.utils.calc_total_error` function.
Let's assume we we have a background-only image called ``bkg_error``.
Let's assume we have a background-only image called ``bkg_error``.
If our data are in units of electrons/s, we would use the exposure
time as the effective gain::
......
......@@ -133,7 +133,7 @@ segmentation image or a specified footprint. Please see the
options.
As simple example, let's find the local peaks in an image that are 10
sigma above the background and a separated by a least 2 pixels:
sigma above the background and a separated by at least 2 pixels:
.. doctest-requires:: skimage
......
......@@ -19,7 +19,7 @@ powerful grouping algorithm to decide whether or not the profile
of a given star extends into the fitting region around the centroid of any
other star. This goal is achieved by means of a variable called "critical
separation", which is defined as the distance such that any two stars
separated by less than it would be overlapping. Stetson also gives intutive
separated by less than it would be overlapping. Stetson also gives intuitive
reasoning to suggest that the critical separation may be defined as the
product of fwhm with some positive real number.
......
......@@ -20,6 +20,8 @@ optional dependencies are installed:
* `scikit-image`_ 0.11 or later
* `scikit-learn <http://scikit-learn.org/>`_ 0.18 or later
* `matplotlib <http://matplotlib.org/>`_ 1.3 or later
.. warning::
......
......@@ -34,7 +34,7 @@ First, we create the source image and subtract its background::
>>> mean, median, std = sigma_clipped_stats(data, sigma=3.0, iters=5)
>>> data -= median # subtract background
Then, calculate its properties::
Then, calculate its properties:
.. doctest-requires:: scipy, skimage
......
......@@ -105,7 +105,7 @@ image, grouping overlapping sources into a single model, fitting the model to th
sources, and subtracting the models from the image. In DAOPHOT parlance, this
is essentially running the "FIND, GROUP, NSTAR, SUBTRACT" once. Because it is
only a single cycle of that sequence, this class should be used when the degree
of crowdness of the field is not very high, for instance, when most stars are
of crowdedness of the field is not very high, for instance, when most stars are
separated by a distance no less than one FWHM and their brightness are
relatively uniform. It is critical to understand, though, that
`~photutils.psf.BasicPSFPhotometry` does not actually contain the functionality
......@@ -279,7 +279,7 @@ Let's then instantiate and use the objects:
>>> residual_image = photometry.get_residual_image()
Note that the parameters values for the finder class, i.e.,
`~photutils.detection.IRAFStarFinder`, are completly chosen in an arbitrary
`~photutils.detection.IRAFStarFinder`, are completely chosen in an arbitrary
manner and optimum values do vary according to the data.
As mentioned before, the way to actually do the photometry is by using
......
# Autogenerated by Astropy-affiliated package photutils's setup.py on 2017-03-02 11:08:29.247226
# Autogenerated by Astropy-affiliated package photutils's setup.py on 2017-03-31 16:35:05.366445
from __future__ import unicode_literals
import datetime
......@@ -181,8 +181,8 @@ def _get_repo_path(pathname, levels=None):
return None
_packagename = "photutils"
_last_generated_version = "0.3.1"
_last_githash = "bcb79d79f31e6587efe3c9ab8aa4a2f324e949ac"
_last_generated_version = "0.3.2"
_last_githash = "cfff6a153b590eaaa15a7fc1df6353981adb1e36"
# Determine where the source code for this module
# lives. If __file__ is not a filesystem path then
......@@ -200,10 +200,10 @@ else:
major = 0
minor = 3
bugfix = 1
bugfix = 2
release = True
timestamp = datetime.datetime(2017, 3, 2, 11, 8, 29, 247226)
timestamp = datetime.datetime(2017, 3, 31, 16, 35, 5, 366445)
debug = False
try:
......
......@@ -50,7 +50,7 @@ LONG_DESCRIPTION = open('LONG_DESCRIPTION.rst').read()
builtins._ASTROPY_PACKAGE_NAME_ = PACKAGENAME
# VERSION should be PEP386 compatible (http://www.python.org/dev/peps/pep-0386)
VERSION = '0.3.1'
VERSION = '0.3.2'
# Indicates if this version is a release version
RELEASE = 'dev' not in VERSION
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment