IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 17, 2022, 1:54:21 PM (4 years ago)
Author:
eugene
Message:

update ippCheck to handle empty output files

Location:
trunk/ippTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTests

  • trunk/ippTests/ippCheck

  • trunk/ippTests/ippCheck/warpstats.pro

    r41941 r42125  
    2424   # results in magFound, fracFound, numFound
    2525   calc.warpstats
    26    if ($i == 0)
     26   if (numTotal_sum?[] == 0)
    2727     set numTotal_sum = numTotal
    2828     set numPoss_sum  = numPoss
     
    3939 end
    4040   
    41  set numTotal = numTotal_sum
    42  set numPoss  = numPoss_sum
    43  delete numTotal_sum numPoss_sum
     41 if (numTotal_sum?[] == 0)
     42    # generate vectors for empty inputs
     43   calc.warpstats
     44 else   
     45   set numTotal = numTotal_sum
     46   set numPoss  = numPoss_sum
     47   delete numTotal_sum numPoss_sum
     48 end
    4449
    4550 set fracPoss  = (numTotal > 0) ? numPoss  / numTotal : zero(numTotal)
     
    8994 $Mdel = 0.25
    9095 
     96 if (Mref_out?[] == 0)
     97   create magBin $Mmin $Mmax $Mdel
     98   set numTotal = zero(magBin)
     99   set numPoss  = zero(magBin)
     100   return
     101 end
     102
    91103 delete -q  magBin numTotal numPoss
    92104 for mag $Mmin $Mmax $Mdel
Note: See TracChangeset for help on using the changeset viewer.