IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 24, 2006, 2:16:45 PM (20 years ago)
Author:
Paul Price
Message:

Changed definition of psVectorAlloc and psArrayAlloc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMergeCombine.c

    r9541 r9737  
    113113            pmReadout *readout = pmReadoutAlloc(cell); // Output readout of interest
    114114            psArray *stack = psArrayAlloc(filenames->n); // Stack of readouts to combine
    115             stack->n = filenames->n;
    116115            psVector *cellScales = NULL; // Scales for this cell
    117116            if (scales) {
     
    128127                int numRead = 0;  // Number of inputs read
    129128                psVector *exptimes = psVectorAlloc(filenames->n, PS_TYPE_F32);  // Reference measurements
    130                 exptimes->n = filenames->n;
    131129                psVectorInit(exptimes, 0);
    132130                psArray *images = psArrayAlloc(filenames->n); // Array of images
    133131                psArray *weights = psArrayAlloc(filenames->n); // Array of weights
    134132                psArray *masks = psArrayAlloc(filenames->n); // Array of masks
    135                 images->n = masks->n = weights->n = filenames->n;
    136133                for (int i = 0; i < filenames->n; i++) {
    137134                    if (! filenames->data[i] || strlen(filenames->data[i]) == 0) {
Note: See TracChangeset for help on using the changeset viewer.