IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 22, 2010, 4:54:49 PM (16 years ago)
Author:
eugene
Message:

correctly handle image IDs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/largefiles.20100314/Ohana/src/addstar/test/dvomerge.dvo

    r27390 r27397  
    7373  tapOK {abs($SIGMA) < 0.001} "ra (in - 0) vs ra (out - 0) (SIGMA)"
    7474
    75   exec rm test.in.txt test.cmf
    76   exec rm -rf catdir.test1
    77   exec rm -rf catdir.test2
    78   exec rm -rf catdir.test3
     75  # check on updates to imageID
     76  catdir catdir.test3
     77  imextract imageID
     78  sort imageID
     79  tapOK {imageID[]  == 4} "image IDs exist"
     80  tapOK {imageID[0] == 1} "updated image IDs"
     81  tapOK {imageID[1] == 2} "updated image IDs"
     82  tapOK {imageID[2] == 3} "updated image IDs"
     83  tapOK {imageID[3] == 4} "updated image IDs"
     84
     85  catdir catdir.test3
     86  mextract imageID, time
     87  set id = imageID
     88  set t = time
     89  imextract imageID, time
     90
     91  for i 0 time[]
     92    subset T = t if (id == imageID[$i])
     93    set dT = T - time[$i]
     94    vstat -q dT
     95    tapOK {abs($MEAN)  < 0.00001} "time for measure ID $i (MEAN)"
     96    tapOK {abs($SIGMA) < 0.00001} "time for measure ID $i (SIGMA)"
     97  end
     98
     99  # exec rm test.in.txt test.cmf
     100  # exec rm -rf catdir.test1
     101  # exec rm -rf catdir.test2
     102  # exec rm -rf catdir.test3
    79103
    80104  tapDONE
     
    84108macro test.dvomerge.create
    85109
    86   tapPLAN 51
     110  tapPLAN 21
    87111
    88112  exec rm -rf catdir.test1
     
    148172  tapOK {abs($MEAN)  < 0.001} "ra (in - 0) vs ra (out - 0) (MEAN)"
    149173  tapOK {abs($SIGMA) < 0.001} "ra (in - 0) vs ra (out - 0) (SIGMA)"
     174
     175  # check on updates to imageID
     176  catdir catdir.test3
     177  imextract imageID
     178  sort imageID
     179  tapOK {imageID[]  == 4} "image IDs exist"
     180  tapOK {imageID[0] == 1} "updated image IDs"
     181  tapOK {imageID[1] == 2} "updated image IDs"
     182  tapOK {imageID[2] == 3} "updated image IDs"
     183  tapOK {imageID[3] == 4} "updated image IDs"
     184
     185  catdir catdir.test3
     186  mextract imageID, time
     187  set id = imageID
     188  set t = time
     189  imextract imageID, time
     190
     191  for i 0 time[]
     192    subset T = t if (id == imageID[$i])
     193    set dT = T - time[$i]
     194    vstat -q dT
     195    tapOK {abs($MEAN)  < 0.00001} "time for measure ID $i (MEAN)"
     196    tapOK {abs($SIGMA) < 0.00001} "time for measure ID $i (SIGMA)"
     197  end
     198
     199  # exec rm test.in.txt test.cmf
     200  # exec rm -rf catdir.test1
     201  # exec rm -rf catdir.test2
     202  # exec rm -rf catdir.test3
    150203
    151204  tapDONE
Note: See TracChangeset for help on using the changeset viewer.