IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 28, 2009, 11:21:56 AM (17 years ago)
Author:
eugene
Message:

always handle psVectorStats false return status (is an error); check for NAN results and handle as possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStats/src/ppStatsFromMetadataStats.c

    r20888 r23989  
    3838
    3939        psStats *stats = psStatsAlloc(option);
    40         psVectorStats(stats, entry->vector, NULL, NULL, 0);
     40        if (!psVectorStats(stats, entry->vector, NULL, NULL, 0)) {
     41            psError(PS_ERR_UNKNOWN, false, "failure to measure stats for %s", entry->statistic);
     42            continue;
     43        }
    4144
    4245        double value;
Note: See TracChangeset for help on using the changeset viewer.