Fitsio

Latest version: v1.2.4

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 6

1.0.3

---------------------------------

This is a bug fix release

Bug Fixes

- The new header reading code did not deal properly with some
HIERARCH non-standard header key values.

1.0.2

---------------------------------

This is a bug fix release

Bug Fixes

- the read_header function was not treating the case_sensitive
keyword properly (Stephen Bailey)

1.0.1

---------------------------------

Backwards Incompatible Changes

- Support for python 3 strings.
- Support for proper string null termination. This means you can read back exactly
what you wrote. However this departs from previous fitsio which used
the non-standard cfitsio convention of padding strings with spaces.
- Scalar indexing of FITS objects now returns a scalar, consistent
with numpy indexing rules (rainwoodman)

New Features

- Installation moved to setuptools from distutils.
- Bundling of cfitsio now done with patches against the upstream
version instead of direct edits to the upstream code.
- Speed improvements for the read_header conveniance function, and
reading of headers in general.

Bug Fixes

- CONTINUE in headers are now properly read. Note there is a corner
case that is mis-handled by the underlying cfitsio library. A bug
report has been sent. (thanks for help with Alex Drlica-Wagner
identifying and testing this issue)
- Fixed bug where some long strings were not properly written to headers
- Fixed bug where compression settings for an open FITS object was inherited
from the previous HDU by a new HDU
- Fixed bug where comment strings were lost when setting the value in
a FITSHDR entry
- Fixed bug where get_comment was raising ValueError rather than KeyError
- For py3 need to ensure by hand that strings sizes are greater than 0

Deprecations

- removed `convert` keyword in `FITSRecord` and `FITSHDR` classes.

0.9.12

---------------------------------

New Features

- Deal properly with undefined value header entries
- can delete rows from a table
- can insert rows with resize()
- can create empty HDU extension for extensions beyond 0 (Felipe Menanteau)
- sanitize string input for py3
- GZIP_2 compression support (Felipe Menanteau)
- Improvements to python packaging for easier installation.
- Using cfitsio 3.430 now with patches for known bugs
- Now support reading and writing bit columns (Eli Rykoff)
- Can now read CONTINUE keywords in headers. It is currently
treated as a comment; full implementation to come. (Alex Drlica-Wagner)
- Can now use a standard key dict when writing a header key using
the write_key method via `**`, e.g. `write_key(**key_dict)`
(Alex Drlica-Wagner)
- Delete row sets and row ranges using the delete_rows() method
for tables
- Resize tables, adding or removing rows, using the resize() method for
tables
- make write_key usable with standard dictionary using the `**keydict`
style
- allow writing empty HDUs after the first one using
ignore_empty=True to the FITS constructor or
the write convenience function (Felipe Menanteau)
We might make this the default in the future if
it is found to be benign

Bug Fixes

- Only raise exception when PLIO u4/u8 is selected now that u1/u2 is supported
in cfitsio (Eli Rykoff)
- link curl library if cfitsio linked to it
- don't require numpy to run setup (Simon Conseil)
- strings with understores in headers, such as `1_000_000` are now not converted to numbers in py3
- check that the input fields names for tables are unique after converting
to upper case
- link against libm explicitly for compatibility on some systems

0.9.11

---------------------------------

New Features

- Added trim_strings option to constructor and as keyword for read methods.
If trim_strings=True is set, white space is trimmed from the end
of all string columns upon reading. This was introduced because
cfitsio internally pads strings out with spaces to the full column
width when writing, against the FITS standard.

- Added read_raw() method to the FITS class, to read the raw underlying data
from the file (Dustin Lang)

Bug Fixes

- Fix bug reading hierarch keywords. recent changes to keyword parsing had
broken reading of hierarch keywords
- Fix for strings that look like expressions, e.g. '3-4' which were
being evaluated rather than returned as strings.
- Fix bug for missing key in FITSHDR object using the hdr[key]
notation. Also raise KeyError rather than ValueError

0.9.10

---------------

Bug Fixes

- Fix variable length string column copying in python 3
- Fix bug checking for max size in a variable length table column.
- Raise an exception when writing to a table with data
that has shape ()
- exit test suite with non-zero exit code if a test fails

Continuous integration

- the travis ci now runs unit tests, ignoring those that may fail
when certain libraries/headers are not installed on the users system (for
now this is only bzip2 support)
- only particular pairs of python version/numpy version are tested

python3 compatibility

- the compatibility is now built into the code rather than
using 2to3 to modify code at install time.

Workarounds

- It turns out that when python, numpy etc. are compiled with gcc 4*
and fitsio is compiled with gcc 5* there is a problem, in some cases,
reading from an array with not aligned memory. This has to do with using
the -O3 optimization flag when compiling cfitsio. For replacing -O3 with
-O2 fixes the issue. This was an issue on linux in both anaconda python2
and python3.

Page 4 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.