Changeset 30296
- Timestamp:
- Jan 19, 2011, 9:45:03 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/perl/exposureSummary.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/perl/exposureSummary.pl
r29999 r30296 86 86 my $totalUnmerged = 0; 87 87 my $totalMergeWorthy = 0; 88 my $totalNotMergeWorthy = 0; 88 89 my $totalProcessed = 0; 89 90 my $totalOnDatastore = 0; 90 91 my $totalLoadedToOdm = 0; 91 92 my $totalLoadFailed = 0; 93 my $totalMergeWorthy = 0; 92 94 my $totalUnderObjIdLimit = 0; 93 95 my $totalUnprocessed = 0; 94 96 my $totalUnprocessedAvailableSmfs = 0; 95 my $ totalOdmFailures = 0;97 my $remainingOdmFailures = 0; 96 98 my $totalUnprocessedMissingSmfs = 0; 99 my $totalProcessedNotOnDatastore = 0; 97 100 98 101 99 102 open (UNPRO, ">unprocessedExposures.txt") or print "* Problem opening data file for unprocessed exposures\n"; 100 103 open (ODMFAIL, ">odmFailures.txt") or print "* Problem opening data file for ODM failures\n"; 104 open (NOTONDATASTORE, ">notOnDatastore.txt") or print "* Problem opening data file for exposures not on datastore\n"; 101 105 102 106 if ($checkNeb) { … … 114 118 if ($verbose) {print "$totalUnmerged | $expId \n"; } 115 119 120 # processed stuff 116 121 if ($ippToPspsDb->isExposureProcessed($expId)) { 117 122 118 123 $totalProcessed++; 119 124 120 if ($ippToPspsDb->isExposureAlreadyPublished($expId)) { 125 if (!$ippToPspsDb->isExposureAlreadyPublished($expId)) { 126 127 $totalProcessedNotOnDatastore++; 128 print NOTONDATASTORE "$expId\n"; 129 } 130 else { 121 131 122 132 $totalOnDatastore++; … … 126 136 $totalLoadedToOdm++; 127 137 128 if ($ippToPspsDb-> didLoadFail($expId)) {129 130 $total LoadFailed++;138 if ($ippToPspsDb->isMergeWorthy($expId)) { 139 140 $totalMergeWorthy++; 131 141 } 132 if ($ippToPspsDb->isMinObjIdUnderLimit($expId)) { 133 134 $totalUnderObjIdLimit++; 135 } 142 # not mergeworthy 136 143 else { 137 144 138 $totalOdmFailures++; 139 print ODMFAIL "$expId\n"; 145 $totalNotMergeWorthy++; 146 147 #if ($ippToPspsDb->didLoadFail($expId)) { 148 149 # $totalLoadFailed++; 150 #} 151 if ($ippToPspsDb->isMinObjIdUnderLimit($expId)) { 152 153 $totalUnderObjIdLimit++; 154 } 155 else { 156 157 $remainingOdmFailures++; 158 print ODMFAIL "$expId\n"; 159 } 140 160 } 141 161 } 142 162 } 143 163 } 164 # unprocessed stuff 144 165 else { 145 166 … … 181 202 close(UNPRO); 182 203 close(ODMFAIL); 204 close(NOTONDATASTORE); 183 205 if ($checkNeb) { 184 206 … … 186 208 close(NOTMISSSMF); 187 209 } 188 my $totalProcessedNotOnDatastore = $totalProcessed - $totalOnDatastore;189 210 my $totalOnDatastoreNotLoaded = $totalOnDatastore - $totalLoadedToOdm; 190 211 print "***********************************************************\n"; … … 205 226 print "* on datastore = $totalOnDatastore\n"; 206 227 print "* not loaded to ODM = $totalOnDatastoreNotLoaded\n"; 207 print "* loaded to ODM but rejected = $totalLoadedToOdm\n"; 208 print "* under -30 dec limit = $totalUnderObjIdLimit\n"; 209 print "* remaining ODM failures = $totalOdmFailures\n"; 228 print "* loaded to ODM = $totalLoadedToOdm\n"; 229 print "* MergeWorthy = $totalMergeWorthy\n"; 230 print "* not MergeWorthy = $totalNotMergeWorthy\n"; 231 print "* under -30 dec limit = $totalUnderObjIdLimit\n"; 232 print "* remaining failures = $remainingOdmFailures\n"; 210 233 print "*\n"; 211 234 print "***********************************************************\n";
Note:
See TracChangeset
for help on using the changeset viewer.
