Skip to content

Commit

Permalink
Merge pull request #12 from bwinkel/naxis3-handling
Browse files Browse the repository at this point in the history
improve axis3 handling
  • Loading branch information
DanielLenz committed Mar 14, 2019
2 parents fee6d35 + 304b515 commit 51fc0c0
Show file tree
Hide file tree
Showing 17 changed files with 864 additions and 537 deletions.
13 changes: 12 additions & 1 deletion CHANGES.rst
@@ -1,6 +1,17 @@
1.0.2 (unreleased)
2.0 (unreleased)
=======================

- Major overhaul of the handling of array shapes. No need to manually
fiddle with FITS headers (`NAXIS3` key) anymore. `cygrid` will now do
everything automatically behind the curtain. [#12]

1.0.2 (unreleased, bugfix release)
==================================

Bugfixes
~~~~~~~~~~


1.0.1 (2019-01-19)
=======================

Expand Down
20 changes: 12 additions & 8 deletions README.rst
Expand Up @@ -80,8 +80,9 @@ Otherwise, you should install cygrid via `pip`::

pip install cygrid

The installation is also possible from source, but you'll need a C++ compiler. Download the tar.gz-file, extract
(or clone from GitHub) and execute::
The installation is also possible from source, but you'll need a C++
compiler. Download the tar.gz-file, extract (or clone from GitHub) and
execute::

python setup.py install

Expand All @@ -92,9 +93,9 @@ We kept the dependencies as minimal as possible. The following packages are
required:

- `Python 3.5` or later (`cygrid` versions prior to v1.0 support `Python 2.7`)
- `numpy 1.10` or later
- `cython 0.23.4` or later
- `astropy 1.0` or later
- `numpy 1.11` or later
- `cython 0.23.4` or later (if you want to build `cygrid` yourself)
- `astropy 2.0.11` or later

(Older versions of these libraries may work, but we didn't test this!)

Expand All @@ -109,7 +110,8 @@ replace `-std=c++11` with `-std=c++0x` in `setup.py`. Thanks to bs538 for
pointing this out.)

For Mac OS, it is required to use gcc-6 in order to install cygrid. We
recommend to simply use the `homebrew <http://brew.sh>`_ package manager and then use `brew install gcc`.
recommend to simply use the `homebrew <http://brew.sh>`_ package manager and
then use `brew install gcc`.

Usage
=====
Expand Down Expand Up @@ -178,7 +180,8 @@ Check out the `user manual <https://bwinkel.github.io/cygrid/latest/>`_ or the
`Jupyter tutorial notebooks <https://github.com/bwinkel/cygrid/tree/master/notebooks>`_
in the repository for further examples of how to use `cygrid`. Note that you
can only view the notebooks on GitHub, if you want to edit something
it is necessary to clone the repository or download a notebook to run it on your machine.
it is necessary to clone the repository or download a notebook to run it on
your machine.

Who do I talk to?
=================
Expand All @@ -193,7 +196,8 @@ issue or make a pull request. Moreover, you can contact the devs directly:
Preferred citation method
=========================

Please cite our `paper <http://adsabs.harvard.edu/abs/2016A%26A...591A..12W>`_ if you use `cygrid` for your projects.
Please cite our `paper <http://adsabs.harvard.edu/abs/2016A%26A...591A..12W>`_
if you use `cygrid` for your projects.

.. code-block:: latex

Expand Down
5 changes: 5 additions & 0 deletions cygrid/constants.h
Expand Up @@ -27,6 +27,11 @@
//
// --------------------------------------------------------------------

// Define maximal y-size of pixel indices
// this is necessary to have a quick'n'dirty hash for the xpix-ypix pairs
// otherwise we would need to provide a hash function to unordered_map,
// (and we don't want to use the true y-size of the map, to avoid a dynamical
// variable for this)
#define MAX_Y (1073741824) // 2^30

// Constants needed for HPX
Expand Down

0 comments on commit 51fc0c0

Please sign in to comment.