- Timestamp:
- Aug 30, 2013, 4:52:14 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130711/ippScripts/scripts/lap_science.pl
- Property svn:mergeinfo set to (toggle deleted branches)
r35792 r36072 33 33 # Global configuration constants that probably should be read from elsewhere. 34 34 my $qstack_threshold = 0.05; # Only make a quickstack if more than 5% of the exposures require it. 35 my $minimum_stack_inputs = 4; # We can avoid magicking stack inputs if we have more than this number.35 my $minimum_stack_inputs = 2; # We can avoid magicking stack inputs if we have more than this number. 36 36 my $do_updates_pv2 = 1; # Do updates using the calls needed for PV2. 37 37 … … 309 309 my $magicDS_update_cmd = "magicdstool -setfiletoupdate -magic_ds_id $chip_magicDS_id -set_label $label"; 310 310 $magicDS_update_cmd .= " -dbname $dbname " if defined $dbname; 311 my $warptool_preupdate_cmd = "warptool -revertwarped -warp_id $warp_id -fault 26"; 312 $warptool_preupdate_cmd .= " -dbname $dbname " if defined $dbname; 311 313 my $warptool_update_cmd = "warptool -setskyfiletoupdate -warp_id $warp_id -set_label $label"; 312 314 $warptool_update_cmd .= " -dbname $dbname " if defined $dbname; … … 314 316 # only need to update the data if the warps are not full 315 317 if ($warp->{state} ne 'full') { 316 if ($chip->{state} eq 'cleaned') { 318 if (($chip->{state} eq 'cleaned')|| # Exposure is cleaned 319 (($chip->{state} eq 'update')&&($chip->{label} ne $label))) { # Exposure is owned by an interloper. 317 320 ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 318 321 run(command => $chiptool_update_cmd, verbose => $verbose); … … 341 344 } 342 345 346 347 ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 348 run(command => $warptool_preupdate_cmd, verbose => $verbose); 349 unless ($success) { 350 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 351 &my_die("Unable to perform warptool --revertwarped: $error_code", $exposure->{exp_id}, $data_group); 352 } 353 343 354 ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 344 355 run(command => $warptool_update_cmd, verbose => $verbose); … … 364 375 if (S64_IS_NOT_NULL($exposure->{chip_id})) { 365 376 if (($exposure->{chip_state} eq 'cleaned')|| 377 ($exposure->{chip_state} eq 'update')|| 366 378 ($exposure->{chip_state} eq 'goto_cleaned')|| 367 379 ($exposure->{chip_state} eq 'error_cleaned')) { … … 777 789 # $can_qstack ++; 778 790 $can_diff ++; 779 $exposure->{data_state} = 'to_diff'; 791 ## BEGIN These two disable LAP stacks 792 $are_magicked = $total_exposures; 793 $have_diff ++; 794 ## END 795 # $exposure->{data_state} = 'to_diff'; 796 $exposure->{data_state} = 'full'; 780 797 } 781 798 if (($exposure->{diff_id})&& … … 858 875 } 859 876 } 860 elsif ($are_magicked == $total_exposures) { # We have made all of the diffs, and propagated through magic877 elsif ($are_magicked >= $total_exposures) { # We have made all of the diffs, and propagated through magic 861 878 print "STATUS: We would create all remaining stacks possible, but no longer require magic.\n"; 862 879 # my $Nstacks_made = -1; … … 1025 1042 # $command .= " -select_label $label "; # Removed to allow exposure sharing to work 1026 1043 $command .= " -set_label ${label} -set_workdir $workdir -set_data_group $data_group "; 1027 $command .= " -min_num ${minimum_stack_inputs} -set_reduction THREEPI_STACK -set_dist_group $exposure->{dist_group} ";1044 $command .= " -min_num ${minimum_stack_inputs} -set_reduction THREEPI_STACK_1DG -set_dist_group $exposure->{dist_group} "; 1028 1045 $command .= " $warps "; 1029 1046 … … 1106 1123 # $command .= " -select_label $label "; # Removed to allow exposure sharing to work 1107 1124 $command .= " -set_label ${label} -set_workdir $workdir -set_data_group $data_group "; 1108 $command .= " -min_num 2 -min_new 2 -set_reduction THREEPI_STACK -set_dist_group $exposure->{dist_group} ";1125 $command .= " -min_num 2 -min_new 2 -set_reduction THREEPI_STACK_1DG -set_dist_group $exposure->{dist_group} "; 1109 1126 $command .= " $warps "; 1110 1127
Note:
See TracChangeset
for help on using the changeset viewer.
