IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 10, 2008, 11:32:26 AM (18 years ago)
Author:
Paul Price
Message:

Allow sources not to be specified if we aren't convolving.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackCamera.c

    r17427 r17428  
    328328    // Sources for use as stamps
    329329    bool status = false;                // Found the file?
    330     pmFPAfile *sources = pmFPAfileDefineFromArgs(&status, config, "PPSTACK.SOURCES", "PPSTACK.SOURCES");
    331     if (!status) {
    332         psError(PS_ERR_IO, false, "Failed to load file definition PPSTACK.SOURCES");
    333         return false;
    334     }
    335     if (sources && sources->type != PM_FPA_FILE_CMF) {
    336         psError(PS_ERR_IO, true, "PPSTACK.SOURCES is not of type CMF");
    337         return false;
     330    if (havePSFs) {
     331        pmFPAfile *sources = pmFPAfileDefineFromArgs(&status, config, "PPSTACK.SOURCES", "PPSTACK.SOURCES");
     332        if (!status) {
     333            psError(PS_ERR_IO, false, "Failed to load file definition PPSTACK.SOURCES");
     334            return false;
     335        }
     336        if (sources && sources->type != PM_FPA_FILE_CMF) {
     337            psError(PS_ERR_IO, true, "PPSTACK.SOURCES is not of type CMF");
     338            return false;
     339        }
    338340    }
    339341
Note: See TracChangeset for help on using the changeset viewer.