IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 5, 2007, 4:29:47 PM (19 years ago)
Author:
Paul Price
Message:

Catching errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSource.c

    r15039 r15232  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.39 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-09-27 03:35:29 $
     8 *  @version $Revision: 1.40 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-10-06 02:29:47 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    573573    psStats *stats = NULL;
    574574    stats = psStatsAlloc (PS_STAT_MIN | PS_STAT_MAX);
    575     psVectorStats (stats, starsn_moments, NULL, NULL, 0);
     575    if (!psVectorStats (stats, starsn_moments, NULL, NULL, 0)) {
     576        // Don't care about this error
     577        psErrorClear();
     578    }
    576579    psLogMsg ("pmObjects", 3, "SN range (moments): %f - %f\n", stats[0].min, stats[0].max);
    577580    psFree (starsn_moments);
     
    579582
    580583    stats = psStatsAlloc (PS_STAT_MIN | PS_STAT_MAX);
    581     psVectorStats (stats, starsn_peaks, NULL, NULL, 0);
     584    if (!psVectorStats (stats, starsn_peaks, NULL, NULL, 0)) {
     585        // Don't care about this error
     586        psErrorClear();
     587    }
    582588    psLogMsg ("pmObjects", 3, "SN range (peaks)  : %f - %f\n", stats[0].min, stats[0].max);
    583589    psFree (starsn_peaks);
Note: See TracChangeset for help on using the changeset viewer.