Changeset 9609
- Timestamp:
- Oct 16, 2006, 5:43:51 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmHDU.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmHDU.c
r9604 r9609 132 132 psTrace("psModules.camera", 7, "Writing HDU %s\n", hdu->extname); 133 133 134 if (hdu->images && hdu->table &&!hdu->header) {134 if (hdu->images && !hdu->header) { 135 135 psError(PS_ERR_IO, true, "Both image and table data provided in HDU, but no header --- " 136 136 "don't know which to write!\n"); … … 138 138 } 139 139 140 if (!hdu->images && !hdu-> table && !hdu->header) {140 if (!hdu->images && !hdu->header) { 141 141 psLogMsg(__func__, PS_LOG_WARN, "Nothing to write for HDU %s\n", hdu->extname); 142 142 return false; … … 154 154 155 155 // Only a header 156 if (!hdu->images && ! hdu->table && !psFitsWriteBlank(fits, hdu->header, extname)) {156 if (!hdu->images && !psFitsWriteBlank(fits, hdu->header, extname)) { 157 157 psError(PS_ERR_IO, false, "Unable to write header for extension %s\n", extname); 158 158 }
Note:
See TracChangeset
for help on using the changeset viewer.
