IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 28, 2009, 2:20:50 PM (17 years ago)
Author:
Paul Price
Message:

Blow away extant readouts when copying --- they confuse the output
when copying over the same file/FPA repeatedly (e.g., for photometry
in ppSub).

File:
1 edited

Legend:

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

    r24272 r24275  
    220220    }
    221221    psTrace("psModules.camera", 3, "xFlip: %d; yFlip: %d\n", xFlip, yFlip);
     222
     223    // Blow away extant readouts
     224    for (int i = 0; i < target->readouts->n; i++) {
     225        psFree(target->readouts->data[i]);
     226        target->readouts->data[i] = NULL;
     227    }
     228    target->readouts->n = 0;
    222229
    223230    // Perform deep copy of the images.  I would prefer *not* to do a deep copy, in the interests of speed (we
Note: See TracChangeset for help on using the changeset viewer.