use_wcslib_4.24
authorDebian Astronomy Maintainers <debian-astro-maintainers@lists.alioth.debian.org>
Mon, 19 Jan 2015 20:07:18 +0000 (20:07 +0000)
committerOle Streicher <olebole@debian.org>
Mon, 19 Jan 2015 20:07:18 +0000 (20:07 +0000)
Gbp-Pq: Name use_wcslib_4.24.patch

astropy/wcs/include/wcslib/wcs.h
astropy/wcs/src/wcslib_wrap.c

index 4dd84e2ba919ab134efbe3f6de2faaca44c84fce..1c148df0e49377d7ff96ee854879b6a1858923b7 100644 (file)
@@ -1,4 +1,4 @@
-/*============================================================================
+1/*============================================================================
 
   WCSLIB 4.23 - an implementation of the FITS WCS standard.
   Copyright (C) 1995-2014, Mark Calabretta
@@ -1568,7 +1568,7 @@ int wcsini(int alloc, int naxis, struct wcsprm *wcs);
 int wcssub(int alloc, const struct wcsprm *wcssrc, int *nsub, int axes[],
            struct wcsprm *wcsdst);
 
-int wcscompare(int cmp, const struct wcsprm *wcs1, const struct wcsprm *wcs2,
+int wcscompare(int cmp, double tol, const struct wcsprm *wcs1, const struct wcsprm *wcs2,
                int *equal);
 
 int wcsfree(struct wcsprm *wcs);
index bb9ca39df6a3808e0ead3360884ad433259b07fd..5520fecb71752fe26fca93c10e946ad018ea5e40 100644 (file)
@@ -751,7 +751,7 @@ PyWcsprm_compare(
 
   wcsprm_python2c(&self->x);
   wcsprm_python2c(&other->x);
-  status = wcscompare(cmp, &self->x, &other->x, &equal);
+  status = wcscompare(cmp, 0.0, &self->x, &other->x, &equal);
   wcsprm_c2python(&self->x);
   wcsprm_c2python(&other->x);
 
@@ -1698,6 +1698,7 @@ PyObject *PyWcsprm_richcompare(PyObject *a, PyObject *b, int op) {
     wcsprm_python2c(bx);
     status = wcscompare(
         WCSCOMPARE_ANCILLARY,
+       0.0,
         ax, bx, &equal);
     wcsprm_c2python(ax);
     wcsprm_c2python(bx);