IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 6, 2007, 1:15:12 PM (19 years ago)
Author:
Paul Price
Message:

Replacing psLogMsg with psWarning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmHDUGenerate.c

    r15327 r15477  
    134134    psMetadataItem *biassecItem = psMetadataLookup(cell->concepts, "CELL.BIASSEC"); // Bias sections
    135135    if (!biassecItem) {
    136         psLogMsg(__func__, PS_LOG_WARN, "CELL.BIASSEC has not been initialised in cell --- "
    137                  "ignored.\n");
     136        psWarning("CELL.BIASSEC has not been initialised in cell --- ignored.\n");
    138137        return false;
    139138    }
     
    146145    if (!mdok || (cellreaddir != 1 && cellreaddir != 2)) {
    147146        // Probably unnecessary, but just in case....
    148         psLogMsg(__func__, PS_LOG_WARN, "CELL.READDIR is not set in cell --- ignored.\n");
     147        psWarning("CELL.READDIR is not set in cell --- ignored.\n");
    149148        return false;
    150149    }
     
    152151        *readdir = cellreaddir;
    153152    } else if (*readdir != cellreaddir) {
    154         psLogMsg(__func__, PS_LOG_WARN, "CELL.READDIR does not match read direction for HDU --- ignored.\n");
     153        psWarning("CELL.READDIR does not match read direction for HDU --- ignored.\n");
    155154        return false;
    156155    }
     
    255254        psMetadataItem *trimsecItem = psMetadataLookup(cell->concepts, "CELL.TRIMSEC"); // Item with trimsec
    256255        if (!trimsecItem || trimsecItem->type != PS_DATA_REGION) {
    257             psLogMsg(__func__, PS_LOG_WARN, "CELL.TRIMSEC has not been initialised in cell --- "
    258                      "ignored.\n");
     256            psWarning("CELL.TRIMSEC has not been initialised in cell --- ignored.\n");
    259257            continue;
    260258        }
     
    264262        if (!mdok || (cellreaddir != 1 && cellreaddir != 2)) {
    265263            // Probably unnecessary, but just in case....
    266             psLogMsg(__func__, PS_LOG_WARN, "CELL.READDIR is not set in cell --- ignored.\n");
     264            psWarning("CELL.READDIR is not set in cell --- ignored.\n");
    267265            continue;
    268266        }
     
    270268            readdir = cellreaddir;
    271269        } else if (readdir != cellreaddir) {
    272             psLogMsg(__func__, PS_LOG_WARN, "CELL.READDIR for cells within the HDU do not match!\n");
     270            psWarning("CELL.READDIR for cells within the HDU do not match!\n");
    273271            cellreaddir = readdir;
    274272        }
     
    282280        if (readout->mask &&
    283281                (readout->mask->numCols != image->numCols || readout->mask->numRows != image->numRows)) {
    284             psLogMsg(__func__, PS_LOG_WARN, "Image and mask have different sizes (%dx%d vs %dx%d)!\n",
     282            psWarning("Image and mask have different sizes (%dx%d vs %dx%d)!\n",
    285283                     image->numCols, image->numRows, readout->mask->numCols, readout->mask->numRows);
    286284        }
    287285        if (readout->weight &&
    288286                (readout->weight->numCols != image->numCols || readout->weight->numRows != image->numRows)) {
    289             psLogMsg(__func__, PS_LOG_WARN, "Image and weight have different sizes (%dx%d vs %dx%d)!\n",
     287            psWarning("Image and weight have different sizes (%dx%d vs %dx%d)!\n",
    290288                     image->numCols, image->numRows, readout->weight->numCols, readout->weight->numRows);
    291289        }
     
    318316
    319317    if (previous != current) {
    320         psLogMsg(__func__, PS_LOG_WARN, "Images within the HDU are of different types "
    321                  "(%x vs %x) --- promoting\n", previous, current);
     318        psWarning("Images within the HDU are of different types (%x vs %x) --- promoting\n",
     319                  previous, current);
    322320        return PS_MAX(previous, current);
    323321    }
     
    336334    if (source->numCols != region->x1 - region->x0 || source->numRows != region->y1 - region->y0) {
    337335        psString regionString = psRegionToString(*region);
    338         psLogMsg(__func__, PS_LOG_WARN, "Image size (%dx%d) does not match region (%s).\n",
     336        psWarning("Image size (%dx%d) does not match region (%s).\n",
    339337                 source->numCols, source->numRows, regionString);
    340338        psFree(regionString);
     
    475473
    476474                if (biassecs->n != readout->bias->n) {
    477                     psLogMsg(__func__, PS_LOG_WARN, "Number of bias sections (%ld) and number of biases (%ld)"
    478                              " do not match.\n", biassecs->n, readout->bias->n);
     475                    psWarning("Number of bias sections (%ld) and number of biases (%ld) do not match.\n",
     476                              biassecs->n, readout->bias->n);
    479477                }
    480478                psListIterator *biasIter = psListIteratorAlloc(readout->bias, PS_LIST_HEAD, false); // Iteratr
Note: See TracChangeset for help on using the changeset viewer.