Changeset 37117 for trunk/ippScripts
- Timestamp:
- Jul 24, 2014, 5:21:29 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/lap_science.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/lap_science.pl
r37073 r37117 34 34 my $qstack_threshold = 0.05; # Only make a quickstack if more than 5% of the exposures require it. 35 35 my $minimum_stack_inputs = 2; # We can avoid magicking stack inputs if we have more than this number. 36 my $do_updates_pv2 = 1; # Do updates using the calls needed for PV2. 36 my $maximum_stack_inputs = 25; # This is the place-holder guess on how big a stack we should process locally 37 my $do_updates_pv2 = 0; # Do updates using the calls needed for PV2. 37 38 38 39 GetOptions( … … 1037 1038 my $data_group = "${label}.${proj_cell}.final.${lap_id}"; 1038 1039 1040 1041 ## 1042 ## Queue the "shallow" stacks that will run at los alamos. 1039 1043 my $command = "$stacktool "; 1040 1044 $command .= " -pretend " if defined $debug; … … 1043 1047 # $command .= " -select_label $label "; # Removed to allow exposure sharing to work 1044 1048 $command .= " -set_label ${label} -set_workdir $workdir -set_data_group $data_group "; 1045 $command .= " -min_num ${minimum_stack_inputs} - set_reduction THREEPI_STACK_1DG -set_dist_group $exposure->{dist_group} ";1049 $command .= " -min_num ${minimum_stack_inputs} -max_num ${maximum_stack_inputs} -set_reduction THREEPI_STACK_1DG -set_dist_group $exposure->{dist_group} "; 1046 1050 $command .= " $warps "; 1047 1051 … … 1054 1058 my $stacks_made = $mdcParser->parse_list(join "", @$stdout_buf) or 1055 1059 &my_die("unable to parse metadata from stacktool -definebyquery", $lap_id, ""); 1056 1060 1061 ## 1062 ## Queue the "deep" stacks that will run locally. 1063 my $deep_minimum = $maximum_stack_inputs + 1; 1064 $command = "$stacktool "; 1065 $command .= " -pretend " if defined $debug; 1066 $command .= " -dbname $dbname " if defined $dbname; 1067 $command .= " -definebyquery -select_skycell_id ${proj_cell}.% -select_filter $filter "; 1068 # $command .= " -select_label $label "; # Removed to allow exposure sharing to work 1069 $command .= " -set_label ${label}.local -set_workdir $workdir -set_data_group $data_group "; 1070 $command .= " -min_num ${deep_minimum} -set_reduction THREEPI_STACK_1DG -set_dist_group $exposure->{dist_group} "; 1071 $command .= " $warps "; 1072 1073 ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 1074 run(command => $command, verbose => $verbose); 1075 unless ($success) { 1076 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 1077 &my_die("Unable to perform stacktool -definebyquery: $error_code", $lap_id); 1078 } 1079 $stacks_made .= $mdcParser->parse_list(join "", @$stdout_buf) or 1080 &my_die("unable to parse metadata from stacktool -definebyquery", $lap_id, ""); 1081 1082 1083 ## Determine the sass_id so we can record it in the database. 1057 1084 $command = "$stacktool "; 1058 1085 $command .= " -dbname $dbname " if defined $dbname;
Note:
See TracChangeset
for help on using the changeset viewer.
