Changeset 644
- Timestamp:
- 09/29/08 11:55:19 (2 months ago)
- Files:
-
- trunk/pywcs/src/distortion_wrap.c (modified) (2 diffs)
- trunk/pywcs/src/pipeline.c (modified) (1 diff)
- trunk/pywcs/src/pipeline.h (modified) (2 diffs)
- trunk/pywcs/src/pywcs.c (modified) (5 diffs)
- trunk/pywcs/src/wcslib_wrap.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/pywcs/src/distortion_wrap.c
r643 r644 177 177 return PyFloat_FromDouble(result); 178 178 } 179 180 static PyMemberDef PyDistLookup_members[] = {181 {NULL}182 };183 179 184 180 static PyGetSetDef PyDistLookup_getset[] = { … … 225 221 0, /* tp_iternext */ 226 222 PyDistLookup_methods, /* tp_methods */ 227 PyDistLookup_members,/* tp_members */223 0, /* tp_members */ 228 224 PyDistLookup_getset, /* tp_getset */ 229 225 0, /* tp_base */ trunk/pywcs/src/pipeline.c
r643 r644 136 136 wcs_input, imgcrd, phi, theta, wcs_output, stat); 137 137 } else { 138 status = pipeline_pix2foc(pipeline, ncoord, nelem, pixcrd, world); 138 if (has_sip || has_p4) { 139 status = pipeline_pix2foc(pipeline, ncoord, nelem, pixcrd, world); 140 } 139 141 } 140 142 trunk/pywcs/src/pipeline.h
r643 r644 49 49 50 50 /** 51 Initialize all the values in a pipeline_t to NULL.51 Initialize all the values in a pipeline_t to NULL. 52 52 */ 53 53 void … … 56 56 57 57 /** 58 Set all the values of a pipeline_t.58 Set all the values of a pipeline_t. 59 59 */ 60 60 void trunk/pywcs/src/pywcs.c
r643 r644 156 156 157 157 static PyObject* 158 PyWcs_repr(PyWcs* self) {159 return PyString_FromFormat("<Wcs object>");160 }161 162 static PyObject*163 158 PyWcs_all_pix2sky_generic(PyWcs* self, PyObject* arg, int do_shift) { 164 159 PyArrayObject* pixcrd = NULL; … … 486 481 */ 487 482 488 static PyMemberDef PyWcs_members[] = {489 {NULL}490 };491 492 483 static PyGetSetDef PyWcs_getset[] = { 493 484 {"cpdis1", (getter)PyWcs_get_cpdis1, (setter)PyWcs_set_cpdis1, (char *)doc_cpdis1}, … … 519 510 0, /*tp_setattr*/ 520 511 0, /*tp_compare*/ 521 (reprfunc)PyWcs_repr,/*tp_repr*/512 0, /*tp_repr*/ 522 513 0, /*tp_as_number*/ 523 514 0, /*tp_as_sequence*/ … … 525 516 0, /*tp_hash */ 526 517 0, /*tp_call*/ 527 (reprfunc)PyWcs_repr,/*tp_str*/518 0, /*tp_str*/ 528 519 0, /*tp_getattro*/ 529 520 0, /*tp_setattro*/ … … 538 529 0, /* tp_iternext */ 539 530 PyWcs_methods, /* tp_methods */ 540 PyWcs_members,/* tp_members */531 0, /* tp_members */ 541 532 PyWcs_getset, /* tp_getset */ 542 533 0, /* tp_base */ trunk/pywcs/src/wcslib_wrap.c
r643 r644 219 219 return 0; 220 220 } 221 }222 223 static PyObject*224 PyWcsprm_repr(PyWcsprm* self) {225 if (is_null(self->x.wcsname)) {226 return NULL;227 }228 229 return PyString_FromFormat("<Wcsprm object '%s'>", self->x.wcsname);230 221 } 231 222 … … 1813 1804 * PyWcsprm definition structures 1814 1805 */ 1815 1816 static PyMemberDef PyWcsprm_members[] = {1817 {NULL}1818 };1819 1806 1820 1807 static PyGetSetDef PyWcsprm_getset[] = { … … 1907 1894 0, /*tp_setattr*/ 1908 1895 0, /*tp_compare*/ 1909 (reprfunc)PyWcsprm_repr,/*tp_repr*/1896 0, /*tp_repr*/ 1910 1897 0, /*tp_as_number*/ 1911 1898 0, /*tp_as_sequence*/ … … 1913 1900 0, /*tp_hash */ 1914 1901 0, /*tp_call*/ 1915 (reprfunc)PyWcsprm_repr,/*tp_str*/1902 0, /*tp_str*/ 1916 1903 0, /*tp_getattro*/ 1917 1904 0, /*tp_setattro*/ … … 1926 1913 0, /* tp_iternext */ 1927 1914 PyWcsprm_methods, /* tp_methods */ 1928 PyWcsprm_members,/* tp_members */1915 0, /* tp_members */ 1929 1916 PyWcsprm_getset, /* tp_getset */ 1930 1917 0, /* tp_base */
