Changeset 31499
- Timestamp:
- May 9, 2011, 7:39:37 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20110505/ippScripts/scripts/lap_science.pl
r31495 r31499 237 237 238 238 # This is a hack to fix old exposures that have no object. 239 unless(defined($comment)) { 240 $comment = ''; 241 } 239 242 if ((!defined($object))||($object eq 'NULL')||($object eq '')) { 240 243 if ($comment =~ /3pi_/) { … … 247 250 } 248 251 else { 249 $exposure->{data_state} = 'drop'; 250 $exposure = update_this_exposure($exposure); 252 $exposure->{data_state} = 'new'; 253 $exposure->{pairwise} = 0; 254 $exposure->{private} = 1; 255 $exposure->{pair_id} = 9223372036854775807; 256 update_this_exposure($exposure); 257 $counter++; 251 258 next; 252 259 } … … 273 280 $counter++; 274 281 } 282 print "ZZ: $exp_id $object $comment $matching{$object}{$comment}\n"; 275 283 } 276 284 … … 280 288 foreach my $comment (keys %{ $matching{$object} }) { 281 289 push @exp_ids_to_diff, $matching{$object}{$comment}; 290 print "$object $comment $matching{$object}{$comment} $indexing{$matching{$object}{$comment}} $exp_ids_to_diff[-1]\n"; 282 291 } 283 292 @exp_ids_to_diff = sort { $indexing{$a} <=> $indexing{$b} } @exp_ids_to_diff; … … 293 302 my $exp_A = ${ $exposures }[$indexing{$exp_id_A}]; 294 303 my $exp_B = ${ $exposures }[$indexing{$exp_id_B}]; 295 304 print "$exp_A $exp_B $exp_id_A $exp_id_B $indexing{$exp_id_A} $indexing{$exp_id_B}\n"; 296 305 $exp_A->{pairwise} = 1; 297 306 $exp_A->{private} = 0; … … 310 319 # Scan all exposures, and ensure that pairwise and private are set correctly 311 320 foreach my $exposure (@$exposures) { 321 print "YY: $exposure\n"; 312 322 if ($exposure->{pairwise} && !($exposure->{pair_id})) { 313 323 $exposure->{pairwise} = 0; # We marked it for pairwise diffs, but didn't match it. Probably an error. … … 317 327 } 318 328 319 $exposure =update_this_exposure($exposure);329 update_this_exposure($exposure); 320 330 } 321 331 return(0);
Note:
See TracChangeset
for help on using the changeset viewer.
