Changes between Version 144 and Version 145 of ippToPsps
- Timestamp:
- Aug 3, 2011, 9:32:54 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ippToPsps
v144 v145 101 101 The logic for this is that errors may occur during the merge phase and it is useful to have local copies of offending batches for debugging purposes. 102 102 103 == Metrics == 103 104 104 = Unit testing = 105 106 Unit tests exist for all batch types in the {{{unitTests}}} folder. These tests confirm that data integrity is maintained after code changes have been made. All batch tests can be run like this 105 {{{ippToPsps}}} has a metrics program which reports processing and loading progress per batch type. It can be run, for example, like this: 107 106 108 107 {{{ 109 cd unitTests 110 ./runAllTests.sh 108 ./run.sh metrics.py configs/lap.xml 109 2011-08-03 09:32:08 | INFO | Loading epoch 2011-07-01-15:34 110 2011-08-03 09:32:08 | INFO | +------+--------------+-----------------+--------------+------------+------------------+ 111 2011-08-03 09:32:08 | INFO | | Type | Total in DVO | Total published | Total failed | Total left | Last published | 112 2011-08-03 09:32:08 | INFO | +------+--------------+-----------------+--------------+------------+------------------+ 113 2011-08-03 09:32:08 | INFO | | P2 | 1547 | 1547 | 1 | 0 | 535.2 hours ago | 114 2011-08-03 09:32:09 | INFO | | ST | 2388 | 2388 | 0 | 0 | 456.4 hours ago | 115 2011-08-03 09:32:09 | INFO | +------+--------------+-----------------+--------------+------------+------------------+ 111 116 }}} 112 113 Or, individual test like this, for detections:114 115 116 {{{117 cd unitTests/detectionTest118 ./run.sh119 }}}120 121 All test create batches in a 'test' mode, meaning, a current date will not be used and, in the case of detections, only chip 33 (instead of all 60) will be processed. The resultant FITS files are then compared (using {{{diff}}}) with FITS files known to be correct. The user is informed if they are identical or if they differ.122 117 123 118 = Recovery system design =
