Changeset 32283
- Timestamp:
- Sep 1, 2011, 2:12:15 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 5 edited
-
ippTasks/survey.pro (modified) (3 diffs)
-
ippTools/share/Makefile.am (modified) (1 diff)
-
ippTools/share/magictool_definebyquery_select.sql (modified) (1 diff)
-
ippTools/share/magictool_definebyquery_select_multidiff.sql (added)
-
ippTools/src/magictool.c (modified) (2 diffs)
-
ippTools/src/magictoolConfig.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/survey.pro
r31868 r32283 213 213 # user functions to manipulate magic labels 214 214 macro survey.add.magic 215 if ( $0 != 3)216 echo "USAGE: survey.add.magic (label) (workdir base) "215 if (($0 != 3)&&($0 != 4)) 216 echo "USAGE: survey.add.magic (label) (workdir base) (multidiff)" 217 217 break 218 218 end 219 219 book newpage SURVEY_MAGIC $1 220 220 book setword SURVEY_MAGIC $1 WORKDIR $2 221 if ($0 == 3) 222 book setword SURVEY_MAGIC $1 MULTIDIFF FALSE 223 else 224 book setword SURVEY_MAGIC $1 MULTIDIFF $3 225 end 221 226 book setword SURVEY_MAGIC $1 STATE PENDING 222 227 end … … 725 730 book setword SURVEY_MAGIC $label STATE DONE 726 731 book getword SURVEY_MAGIC $label WORKDIR -var workdir 727 728 $run = magictool -rerun -definebyquery -label $label -diff_label $label -workdir $workdir/$label 732 book getword SURVEY_MAGIC $label MULTIDIFF -var multidiff 733 734 $run = magictool -pretend -rerun -definebyquery -label $label -diff_label $label -workdir $workdir/$label 735 736 if (("$multidiff" == "TRUE")||("$multidiff" == "MULTIDIFF")) 737 $run = $run -multidiff 738 end 729 739 730 740 if ($DB:n == 0) … … 735 745 end 736 746 737 #echo $run747 echo $run 738 748 command $run 739 749 end -
trunk/ippTools/share/Makefile.am
r31687 r32283 244 244 magictool_definebyquery_insert.sql \ 245 245 magictool_definebyquery_select.sql \ 246 magictool_definebyquery_select_multidiff.sql \ 246 247 magictool_inputs.sql \ 247 248 magictool_inputskyfile.sql \ -
trunk/ippTools/share/magictool_definebyquery_select.sql
r32281 r32283 49 49 ) AS oldMagicRun 50 50 ON oldMagicRun.exp_id = chipRun.exp_id 51 -- AND oldMagicRun.diff_id = diffWarps.diff_id52 51 -- WHERE hook %s 53 52 GROUP BY chipRun.exp_id -
trunk/ippTools/src/magictool.c
r31659 r32283 131 131 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 132 132 PXOPT_LOOKUP_BOOL(pretend, config->args, "-pretend", false); 133 133 PXOPT_LOOKUP_BOOL(multidiff, config->args, "-multidiff", false); 134 134 psMetadata *diffWhere = psMetadataAlloc(); // WHERE conditions for diffRuns 135 135 PXOPT_COPY_STR(config->args, diffWhere, "-diff_label", "diffRun.label", "=="); … … 142 142 // Get list of exposures ready to magic 143 143 { 144 psString query = pxDataGet("magictool_definebyquery_select.sql"); 144 psString query; 145 if (multidiff) { 146 query = pxDataGet("magictool_definebyquery_select_multidiff.sql"); 147 } 148 else { 149 query = pxDataGet("magictool_definebyquery_select.sql"); 150 } 145 151 if (!query) { 146 152 psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement"); -
trunk/ippTools/src/magictoolConfig.c
r31605 r32283 61 61 psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-available", 0, "process what's immediately available?", false); 62 62 psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-rerun", 0, "generate new run even if existing?", false); 63 psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-multidiff", 0, "allow multiple diffs to be magicked with the same label", false); 63 64 psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-simple", 0, "use the simple output format", false); 64 65 psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-pretend", 0, "list results but do not queue", false);
Note:
See TracChangeset
for help on using the changeset viewer.
