Changeset 32680
- Timestamp:
- Nov 16, 2011, 3:04:31 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
ippScripts/scripts/dist_defineruns.pl (modified) (1 diff)
-
ippTasks/survey.pro (modified) (9 diffs)
-
ippTools/share/bgtool_definechip.sql (modified) (1 diff)
-
ippTools/src/disttool.c (modified) (2 diffs)
-
ippTools/src/disttoolConfig.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/dist_defineruns.pl
r30489 r32680 88 88 push @stages, $stage; 89 89 } else { 90 @stages = qw( rawchip chip_bg camera fake warp warp_bg diff stack SSdiff sky);90 @stages = qw(chip chip_bg camera fake warp warp_bg diff stack SSdiff sky); 91 91 } 92 92 -
trunk/ippTasks/survey.pro
r32290 r32680 302 302 # user functions to manipulate dist labels 303 303 macro survey.add.dist 304 if ($0 != 3)305 echo "USAGE: survey.add.dist (label) (workdir) "304 if ($0 != 4) 305 echo "USAGE: survey.add.dist (label) (workdir) (muggle)" 306 306 break 307 307 end 308 308 book newpage SURVEY_DIST $1 309 309 book setword SURVEY_DIST $1 WORKDIR $2 310 book setword SURVEY_DIST $1 MUGGLE $3 310 311 book setword SURVEY_DIST $1 STATE PENDING 311 312 end … … 329 330 # user functions to manipulate chip_bg labels 330 331 macro survey.add.chip.bg 331 if ($0 != 3)332 echo "USAGE: survey.add.chip.bg (label) (dist_group) "332 if ($0 != 4) 333 echo "USAGE: survey.add.chip.bg (label) (dist_group) (muggle)" 333 334 break 334 335 end 335 336 book newpage SURVEY_CHIP_BG $1 336 337 book setword SURVEY_CHIP_BG $1 DIST_GROUP $2 338 book setword SURVEY_CHIP_BG $1 MUGGLE $3 337 339 book setword SURVEY_CHIP_BG $1 STATE PENDING 338 340 end … … 356 358 # user functions to manipulate warp_bg labels 357 359 macro survey.add.warp.bg 358 if ($0 != 3)359 echo "USAGE: survey.add.warp.bg (label) (dist_group) "360 if ($0 != 4) 361 echo "USAGE: survey.add.warp.bg (label) (dist_group) (muggle)" 360 362 break 361 363 end 362 364 book newpage SURVEY_WARP_BG $1 363 365 book setword SURVEY_WARP_BG $1 DIST_GROUP $2 366 book setword SURVEY_WARP_BG $1 MUGGLE $3 364 367 book setword SURVEY_WARP_BG $1 STATE PENDING 365 368 end … … 984 987 $workdir = $workdir_base/$label/$year/$month/$day 985 988 989 book getword SURVEY_DIST $label MUGGLE -var muggle 990 986 991 book setword SURVEY_DIST $label STATE DONE 987 992 988 993 # note workdir is set by the script based on site.config 989 994 $run = dist_defineruns.pl --label $label --workdir $workdir 995 if ($muggle != 0) 996 $run = $run --no_magic 997 end 990 998 991 999 if ($DB:n == 0) … … 1058 1066 book setword SURVEY_CHIP_BG $label STATE DONE 1059 1067 book getword SURVEY_CHIP_BG $label DIST_GROUP -var dist_group 1068 book getword SURVEY_CHIP_BG $label MUGGLE -var muggle 1060 1069 1061 1070 $run = bgtool -definechip -label $label -set_dist_group $dist_group 1071 if ($muggle == 0) 1072 $run = $run -destreaked 1073 end 1062 1074 1063 1075 if ($DB:n == 0) … … 1068 1080 end 1069 1081 1070 # echo $run 1082 if ($VERBOSE > 1) 1083 echo $run 1084 end 1071 1085 command $run 1072 1086 end … … 1128 1142 book setword SURVEY_WARP_BG $label STATE DONE 1129 1143 book getword SURVEY_WARP_BG $label DIST_GROUP -var dist_group 1144 book getword SURVEY_WARP_BG $label MUGGLE -var muggle 1130 1145 1131 1146 $run = bgtool -definewarp -warp_label $label -set_dist_group $dist_group 1147 if ($muggle == 0) 1148 $run = $run -destreaked 1149 end 1150 1132 1151 1133 1152 if ($DB:n == 0) … … 1138 1157 end 1139 1158 1140 # echo $run 1159 if ($VERBOSE > 1) 1160 echo $run 1161 end 1141 1162 command $run 1142 1163 end … … 1258 1279 book npages SURVEY_STATICSKYSINGLE -var N 1259 1280 if ($N == 0) 1260 echo "No STATICSKYSINGLE labels for processing"1281 # echo "No STATICSKYSINGLE labels for processing" 1261 1282 break 1262 1283 endif -
trunk/ippTools/share/bgtool_definechip.sql
r28568 r32680 5 5 LEFT JOIN chipBackgroundRun USING(chip_id) 6 6 WHERE chipRun.state = 'full' 7 AND chipRun.magicked > 0 -- require destreaked to stop race condition in destreaking -
trunk/ippTools/src/disttool.c
r32197 r32680 141 141 PXOPT_LOOKUP_BOOL(use_alternate, config->args, "-use_alternate", false); 142 142 PXOPT_LOOKUP_BOOL(no_magic, config->args, "-no_magic", false); 143 PXOPT_LOOKUP_BOOL(i_am_sure, config->args, "-i_am_sure", false);144 143 PXOPT_LOOKUP_STR(set_label, config->args, "-set_label", false, false); 145 144 PXOPT_LOOKUP_STR(set_data_group, config->args, "-set_data_group", false, false); … … 165 164 PXOPT_LOOKUP_STR(dist_group, config->args, "-dist_group", false, false); 166 165 167 // queuing no_magic runs can be quite dangerous. Require confirmation168 if (no_magic && !pretend && !i_am_sure) {169 psError(PXTOOLS_ERR_SYS, true, "-i_am_sure required to queue no_magic distribution runs");170 return false;171 }172 173 166 if (use_alternate) { 174 167 if (strcmp(stage, "raw")) { -
trunk/ippTools/src/disttoolConfig.c
r32197 r32680 49 49 50 50 psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-no_magic", 0, "magic is not needed", false); 51 psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-i_am_sure", 0, "confirmation needed when -no_magic is supplied", false);52 51 psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-use_alternate", 0, "use alternate inputs", false); 53 52 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-set_label", 0, "define label for run", NULL);
Note:
See TracChangeset
for help on using the changeset viewer.
