Changeset 31922 for trunk/ippScripts/scripts/lap_science.pl
- Timestamp:
- Jul 22, 2011, 4:20:20 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/lap_science.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/lap_science.pl
r31795 r31922 29 29 my ( $lap_id ); 30 30 my ( $chip_mode, $monitor_mode, $cleanup_mode); 31 32 # Global configuration constants that probably should be read from elsewhere. 33 my $qstack_threshold = 0.05; # Only make a quickstack if more than 5% of the exposures require it. 31 34 32 35 GetOptions( … … 456 459 my $can_fstack = 0; 457 460 my $total_exposures = 0; 458 my $lonely_exposures = 0;461 my @lonely_exposures = (); 459 462 foreach my $exposure (@$exposures) { 460 463 $total_exposures++; … … 474 477 475 478 if ($exposure->{private}) { # I've declared this exposure private to this lapRun. 476 $needs_qstack = 1; 479 $needs_qstack++; 480 push @lonely_exposures, $exposure; 477 481 # $lonely_exposures++; 478 482 } … … 512 516 unless ((defined($exposure->{diffRun_state}))&& 513 517 ($exposure->{diffRun_state} eq 'full')) { 514 $needs_qstack = 1;518 $needs_qstack++; 515 519 $needs_something_private = 1; 516 520 if ($companion) { … … 518 522 $companion->{pairwise} = 0; 519 523 &update_this_exposure($companion); 524 push @lonely_exposures, $companion; 520 525 # $lonely_exposures++; 521 526 } … … 569 574 exit(0); 570 575 } 571 if (($needs_qstack == 1)&& # Do we need the quick stack?576 if (($needs_qstack > 0)&& # Do we need the quick stack? 572 577 ($defined_qstack == 0)&& # Have we not made it already? 573 578 ($can_qstack == $total_exposures)&& # Are all warps done? 574 579 ($needs_something_remade == 0) # Do we need to wait for a stolen exposure? 575 580 ) { 576 print "STATUS: Will now queue quickstacks\n"; 577 &queue_quickstack($exposures); 581 if ($needs_qstack < $total_exposures * $qstack_threshold) { # Drop any exposures that are requiring the qstack 582 print "STATUS: Insufficient unpaired exposures to justify quickstack. Dropping unpaired exposures\n"; 583 foreach $exposure (@lonely_exposures) { 584 $exposure->{data_state} = 'drop'; 585 &update_this_exposure($exposure); 586 } 587 } 588 else { 589 print "STATUS: Will now queue quickstacks\n"; 590 &queue_quickstack($exposures); 591 } 578 592 } 579 593
Note:
See TracChangeset
for help on using the changeset viewer.
