IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 9, 2007, 3:17:14 PM (19 years ago)
Author:
jhoblitt
Message:
  • fix inhere. workdir rawExp to chipRun
  • add option to supply workdir to addprocessedexp
  • add 'reduction' to newExp and rawExp
  • add inherit reduction from newexp -> rawExp and rawExp -> chipRun
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/regtool.c

    r14059 r14091  
    629629            return false;
    630630        }
    631         psFree(rawExp);
    632631
    633632        // if this is a detrend image don't put it in the chip queue (and we're
     
    641640                }
    642641                psError(PS_ERR_UNKNOWN, false, "failed to change newExp.state for exp_id: %s", exp_id);
     642                psFree(rawExp);
    643643                psFree(output);
    644644                return false;
     
    655655            }
    656656            psError(PS_ERR_UNKNOWN, false, "failed to change newExp.state for exp_id: %s", exp_id);
     657            psFree(rawExp);
    657658            psFree(output);
    658659            return false;
     
    661662        // insert an entry into the chipPendingExp table
    662663        // this can only be run as the newExp's state has been set to stop
    663         if (!pxchipQueueByExpTag(config, exp_id, NULL, NULL, NULL, NULL, NULL)) {
     664        if (!pxchipQueueByExpTag(config,
     665                    exp_id, // exp_id is the string version, rawExp->exp_id isa int
     666                    rawExp->workdir,
     667                    NULL, // label
     668                    rawExp->reduction,
     669                    NULL, // expgroup
     670                    NULL  // dvodb
     671        )) {
    664672            // rollback
    665673            if (!psDBRollback(config->dbh)) {
     
    667675            }
    668676            psError(PS_ERR_UNKNOWN, false, "failed to queue chipPendingExp");
     677            psFree(rawExp);
    669678            psFree(output);
    670679            return false;
    671680        }
     681        psFree(rawExp);
    672682    }
    673683    psFree(output);
     
    924934    }
    925935
     936    psString workdir = psMetadataLookupStr(&status, config->args, "-workdir");
     937    if (!status) {
     938        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -workdir");
     939        return false;
     940    }
     941
     942    psString reduction = psMetadataLookupStr(&status, config->args, "-reduction");
     943    if (!status) {
     944        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -reduction");
     945        return false;
     946    }
     947
    926948    psString filter = psMetadataLookupStr(&status, config->args, "-filter");
    927949    if (!status) {
     
    10651087        exp_type,
    10661088        filelevel,
    1067         exp->workdir,
     1089        workdir ? workdir : exp->workdir,
     1090        reduction ? reduction : exp->reduction,
    10681091        filter,
    10691092        airmass,
Note: See TracChangeset for help on using the changeset viewer.