Releases: astropy/ccdproc
2.4.1
This minor release fixes the astropy version requirement and a bug in handling an empty ImageFileCollection
:
2.3.1 -- fixes astropy 5.1 compatibility
This minor release fixes compatibility with astropy 5.1 and includes a packaging fix from new contributor @astrobatty
2.3.0 -- cosmic ray update
- The primary feature of this release is that it supports the latest
astroscrappy
release.astroscrappy
is a Python/C implementation of the LAcosmic cosmic ray removal algorithm.
2.2.0 -- Image combination performance
This release contains some modest improvements in image combination performance. For the best performance, install the bottleneck
. With bottleneck installed, median_combine
is 2x faster.
Changes in this version:
- Image combination is faster for average and sum combine, and improves for all operations if the bottleneck package is installed.
- Pixel-wise weighting can be done for sum and average combine.
- When filtering an ImageFileCollection by keyword value, and not explicitly using a regex search pattern (
regex_match=True
), escape all special characters in the keyword value for a successful search. - Return mask and uncertainty from combine even if input images have no mask or uncertainty.
Thanks to all of the people who contributed code, opened issues, and/or provided advice:
- Timothy P. Ellsworth-Bowers (@tbowers7) and Pey Lian Lim (@pllim) wrote code for this release.
- Yoonsoo Back (@ysBach) and Simon Conseil (@saimn) provided extensive input on image combination.
- Issues opened by Yash Gondhalekar (@Yash-10), Michael Kelley (@mkelley), Jane Rigby (@janerigby), and Aayushi Verma
(@awesomecosmos) were closed in this release. - Rieke Bohemann and Tim-Oliver Husser (@thusser) provided extensive details about issues with median combination which have been addressed in this release.
2.1.1
There are several minor fixes in this release:
New Features
- Improve integration of
ImageFileCollection
with image combination and document that integration [#762]
Other Changes and Additions
- Add memory_profiler as a test requirement [#739]
- Updated test suite to use absolute, not relative imports [#735]
Bug Fixes
test_image_collection.py
in the test suite no longer produces permanent files on disk and cleans up after itself. [#738]- Change
Combiner
to allow accepting either a list or a generator [#757] ImageFileCollection
now correctly returns an empty collection when an existing collection is filtered restrictively enough to remove all files. [#750]- Logging now preserves all of the arguments when the keyword argument names are not used. [#756]
Thanks to our contributors
These folks made code contributions to this release, which wouldn't have happened without them:
- Larry Bradley (@larrybradley)
- Timothy P. Ellsworth-Bowers (@tbowers7)
- Yash Gondhalekar (@Yash-10)
- Kelvin Lee (@laserkelvin)
- Pey Lian Lim (@pllim)
- Jenna Ryon (@jryon)
Thanks to these people who have helped by opening multiple issues with ccdproc
-- many of the improvements come from these issues:
- Juan Cabanela (@JuanCab)
- @mheida
- Sara Ogaz (@SaOgaz)
- Jean-Paul Ventura (@jvntra)
- Kerry Paterson (@KerryPaterson)
- Jane Rigby (@janerigby)
- Kris Stern (@kakirastern)
- Alexa Villaume (@AlexaVillaume)
- Brian York (@york-stsci)
- Sylvielsstfr (@sylvielsstfr)
2.1.0 (re-relase for Zenodo)
The primary change in this release is a change to the behavior of cosmicray_lacosmic
. Prior to this version the gain was applied to the input data without updating the units. That has been changed in this version. A more complete description is below.
There are two ways to correctly invoke ~ccdproc.cosmicray_lacosmic
:
- Supply a gain-corrected image, in units of
electron
, and setgain=1.0
(the default value) incosmicray_lacosmic
. - Supply an image in
adu
and set thegain
argument of
cosmicray_lacosmic
to the appropriate value for your
instrument. Ideally, pass in again
with units, but if units are
omitted they will be assumed to beelectron/adu
.
ccdproc 2.0.1
2.0.1 fixes a bug that required pytest to be installed to import ccdproc.
Release notes from 2.0:
This is the first release of ccdproc that is Python 3 only!
New and improved
The ImageFileCollection for working with sets of images has several new features:
- Construct a collection from an explicit list of files.
- Filter files using regular expression matching.
- Create a new collection by filtering an existing collection.
Other new features include:
- Weights in image combination can be a 1D array.
- Reduced memory in image combination.
- Many fewer files open during image combination when using memory mapping and breaking the image stack into chunks.
- Better performance and a wider array of compression types for ImageFileCollection.
- Better handling of constructing error array when some image value are negative.
In addition, several bugs were fixed.
See the changelog for more details.
ccdproc 2.0
This is the first release of ccdproc that is Python 3 only!
New and improved
The ImageFileCollection
for working with sets of images has several new features:
- Construct a collection from an explicit list of files.
- Filter files using regular expression matching.
- Create a new collection by filtering an existing collection.
Other new features include:
- Weights in image combination can be a 1D array.
- Reduced memory in image combination.
- Many fewer files open during image combination when using memory mapping and breaking the image stack into chunks.
- Better performance and a wider array of compression types for
ImageFileCollection
. - Better handling of constructing error array when some image value are negative.
In addition, several bugs were fixed.
See the changelog for more details.
v1.3.0.post1
Changed released package on PyPI to tar.gz without Windows line-endings
v1.3.0
New Features
-
Added ext parameter and property to ImageFileCollection to specify the FITS
extension. [#463] -
Add keywords.deleter method to ImageFileCollection. [#474]
-
Added
glob_include
andglob_exclude
parameter to
ImageFileCollection
. [#484] -
Add
bitfield_to_boolean_mask
function to convert abitfield
to a
boolean mask (following the numpy conventions). [#460] -
Added
gain_corrected
option in ccd_process so that calibration
files do not need to previously been gain corrected. [#491] -
Add a new
wcs_relax
argument toCCDData.to_header()
that is passed
through to theWCS
method of the same name to allow more flexible
handing of headers with SIP distortion. [#501] -
combine
now acceptsnumpy.ndarray
as the inputimg_list
.
[#493, #503] -
Add
norm_value
argument toflat_correct
that allows the normalization
of the flat frame to be manually specified. [#584, #577]
Other Changes and Additions
-
removed ability to set unit of CCDData to None. [#451]
-
deprecated
summary_info
property ofImageFileCollection
now raises
a deprecation warning. [#486] -
Logging will include the abbreviation even if the
meta
attribute of
the processedCCDData
isn't afits.Header
. [#528] -
The
CCDData
class and the functionsfits_ccddata_reader
and
fits_ccddata_writer
will be imported fromastropy.nddata
if
astropy >= 2.0 is installed (instead of the one defined inccdproc
). [#528] -
Building the documentation requires astropy >= 2.0. [#528]
-
When reading a
CCDData
from a file the WCS-related keywords are removed
from the header. [#568] -
The
info_file
argument forImageFileCollection
is now deprecated.
[#585]
Bug Fixes
-
ImageFileCollection
now handles Headers with duplicated keywords
(other thanCOMMENT
andHISTORY
) by ignoring all but the first. [#467] -
The
ccd
method ofImageFileCollection
will raise an
NotImplementedError
in case the parameteroverwrite=True
or
clobber=True
is used instead of silently ignoring the parameter. [#527] -
The
sort
method ofImageFileCollection
now requires an explicitly
givenkeys
argument. [#534] -
Fixed a problem with
CCDData.read
when the extension wasn't given and the
primary HDU contained nodata
but another HDU did. In that case the header
were not correctly combined. [#541] -
Suppress errors during WCS creation in CCDData.read(). [#552]
-
The generator methods in
ImageFileCollection
now don't leave open file
handles in case the iterator wasn't advanced or an exception was raised
either inside the method itself or during the loop. [#553] -
Allow non-string columns when filtering an
ImageFileCollection
with a
string value. [#567]