IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17058


Ignore:
Timestamp:
Mar 19, 2008, 11:08:41 AM (18 years ago)
Author:
Paul Price
Message:

Fixing another bug resulting from normConcept being defined but blank
--- it was normalising by NAN.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/detrend/pmDark.c

    r17054 r17058  
    337337    }
    338338    float norm = NAN;                   // Normalisation value
     339    bool doNorm = false;                // Do normalisation?
    339340    if (normConcept && strlen(normConcept) > 0) {
    340341        if (!ordinateLookup(&norm, normConcept, false, NAN, NAN, readout)) {
     
    343344            return false;
    344345        }
     346        doNorm = true;
    345347    }
    346348
     
    367369            }
    368370            float value = psPolynomialMDEval(poly, values); // Value of dark current
    369             if (normConcept) {
     371            if (doNorm) {
    370372                value *= norm;
    371373            }
Note: See TracChangeset for help on using the changeset viewer.