IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25265


Ignore:
Timestamp:
Sep 3, 2009, 11:58:39 AM (17 years ago)
Author:
Paul Price
Message:

Fixing type for fraction vector.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/psphot/src/psphotFake.c

    r25263 r25265  
    195195
    196196    int numBins = magOffsets->n;                          // Number of bins
    197     psVector *frac = psVectorAlloc(numBins, PS_TYPE_S32); // Fraction of sources in each bin
     197    psVector *frac = psVectorAlloc(numBins, PS_TYPE_F32); // Fraction of sources in each bin
    198198    for (int i = 0; i < numBins; i++) {
    199199        int numFound = 0;               // Number found
     
    205205            }
    206206        }
    207         frac->data.S32[i] = (float)numFound / (float)numSources;
     207        frac->data.F32[i] = (float)numFound / (float)numSources;
    208208    }
    209209
Note: See TracChangeset for help on using the changeset viewer.