IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28018


Ignore:
Timestamp:
May 18, 2010, 7:01:40 PM (16 years ago)
Author:
watersc1
Message:

Simtest tested version of the code. Everything has been checked to work except the camera stage data. Previous tests showed that camera stage worked on GPC1 data correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20100427/ippTools/src/difftool.c

    r28017 r28018  
    735735        }
    736736        // Set diffRun.software_ver to the appropriate value
    737         if (!pxSetRunSoftware(config, "diffRun", "diff_id", diff_id, software_ver)) {
    738           psError(PS_ERR_UNKNOWN, false, "failed to set diffRun.software_ver for diff_id: %" PRId64,
    739                   diff_id);
    740           psFree(output);
    741           if (!psDBRollback(config->dbh)) {
    742             psError(PS_ERR_UNKNOWN, false, "database error");
     737        if (software_ver) {
     738          if (!pxSetRunSoftware(config, "diffRun", "diff_id", diff_id, software_ver)) {
     739            psError(PS_ERR_UNKNOWN, false, "failed to set diffRun.software_ver for diff_id: %" PRId64,
     740                    diff_id);
     741            psFree(output);
     742            if (!psDBRollback(config->dbh)) {
     743              psError(PS_ERR_UNKNOWN, false, "database error");
     744            }
     745            return(false);
    743746          }
    744           return(false);
    745747        }
    746748        // Set diffRun.maskfrac* to the appropriate values.
    747         if (!pxSetRunMaskfrac(config, "diffRun", "diff_id", diff_id, maskfrac_npix, maskfrac_static,
    748                               maskfrac_dynamic, maskfrac_magic, maskfrac_advisory)) {
    749           psError(PS_ERR_UNKNOWN, false, "failed to set diffRun.software_ver for diff_id: %" PRId64,
    750                   diff_id);
    751           psFree(output);
    752           if (!psDBRollback(config->dbh)) {
    753             psError(PS_ERR_UNKNOWN, false, "database error");
     749        if (maskfrac_npix) {
     750          if (!pxSetRunMaskfrac(config, "diffRun", "diff_id", diff_id, maskfrac_npix, maskfrac_static,
     751                                maskfrac_dynamic, maskfrac_magic, maskfrac_advisory)) {
     752            psError(PS_ERR_UNKNOWN, false, "failed to set diffRun.software_ver for diff_id: %" PRId64,
     753                    diff_id);
     754            psFree(output);
     755            if (!psDBRollback(config->dbh)) {
     756              psError(PS_ERR_UNKNOWN, false, "database error");
     757            }
     758            return(false);
    754759          }
    755           return(false);
    756         }       
     760        }
    757761        // set diffRun.state to 'full'
    758762        if (!setdiffRunState(config, diff_id, "full", magicked)) {
Note: See TracChangeset for help on using the changeset viewer.