IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 30, 2012, 2:49:37 PM (14 years ago)
Author:
eugene
Message:

merge changes from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/psModules/src/imcombine/pmSubtraction.c

    r32695 r33638  
    796796    pmSubtractionStamp *stamp = job->args->data[0]; // List of stamps
    797797    pmSubtractionKernels *kernels = job->args->data[1]; // Kernels
    798     int footprint = PS_SCALAR_VALUE(job->args->data[2], S32); // Stamp index
     798    int footprint = PS_SCALAR_VALUE(job->args->data[2], S32); // Stamp index -- MEH - it is?
    799799
    800800    return pmSubtractionConvolveStamp(stamp, kernels, footprint);
     
    832832
    833833#ifdef TESTING
     834    //MEH - index conflict or changed in past?
    834835    for (int j = 0; j < kernels->num; j++) {
    835836        if (stamp->convolutions1) {
    836837            psString convName = NULL;
    837             psStringAppend(&convName, "conv1_%03d_%03d.fits", index, j);
    838             psFits *fits = psFitsOpen(convName, "w");
     838            //psStringAppend(&convName, "conv1_%03d_%03d.fits", index, j);
     839            psStringAppend(&convName, "conv1_xxx_%03d.fits", j);
     840            psFits *fits = psFitsOpen(convName, "w");
    839841            psFree(convName);
    840842            psKernel *conv = stamp->convolutions1->data[j];
     
    845847        if (stamp->convolutions2) {
    846848            psString convName = NULL;
    847             psStringAppend(&convName, "conv2_%03d_%03d.fits", index, j);
    848             psFits *fits = psFitsOpen(convName, "w");
     849            //psStringAppend(&convName, "conv2_%03d_%03d.fits", index, j);
     850            psStringAppend(&convName, "conv2_xxx_%03d.fits", j);
     851            psFits *fits = psFitsOpen(convName, "w");
    849852            psFree(convName);
    850853            psKernel *conv = stamp->convolutions2->data[j];
     
    905908        }
    906909    }
    907     if (!psThreadPoolWait(true)) {
     910    if (!psThreadPoolWait(true, true)) {
    908911        psError(psErrorCodeLast(), false, "Error waiting for threads.");
    909912        return false;
     
    14271430    }
    14281431
    1429     if (!psThreadPoolWait(false)) {
     1432    if (!psThreadPoolWait(false, true)) {
    14301433        psError(psErrorCodeLast(), false, "Error waiting for threads.");
    14311434        return false;
Note: See TracChangeset for help on using the changeset viewer.