Changeset 30414
- Timestamp:
- Jan 28, 2011, 2:17:28 PM (15 years ago)
- Location:
- tags/ipp-20101215
- Files:
-
- 6 edited
-
ippScripts/scripts/publish_file.pl (modified) (4 diffs, 1 prop)
-
ippTasks/publish.pro (modified) (3 diffs, 1 prop)
-
ippTasks/survey.pro (modified) (4 diffs, 1 prop)
-
ippTools/share/pubtool_pending.sql (modified) (3 diffs, 1 prop)
-
ippTools/src/pubtool.c (modified) (1 diff, 1 prop)
-
ippTools/src/pubtoolConfig.c (modified) (1 diff, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20101215/ippScripts/scripts/publish_file.pl
- Property svn:mergeinfo set to
r29980 r30414 42 42 43 43 # Parse the command-line arguments 44 my ( $pub_id, $camera, $stage, $stage_id, $fileset, $format, $product, $workdir );44 my ( $pub_id, $camera, $stage, $stage_id, $fileset, $format, $product, $workdir, $need_magic ); 45 45 my ( $dbname, $verbose, $no_update, $no_op, $save_temps, $redirect ); 46 46 my ( $output_format ); … … 54 54 'fileset=s' => \$fileset, # Fileset name 55 55 'workdir=s' => \$workdir, # Working directory 56 'need-magic' => \$need_magic, # do we require censored detections? 56 57 'dbname=s' => \$dbname, # Database name 57 58 'verbose' => \$verbose, # Print to stdout … … 166 167 foreach my $comp ( @$components ) { 167 168 my $path_base = $comp->{path_base}; # Base name for file 169 if (!$need_magic and $comp->{magicked}) { 170 # This client is authorized to receive uncensored detections 171 # Get the uri for the "backup" files 172 print "Using uncensored input from $path_base\n"; 173 $path_base = $ipprc->destreaked_filename($path_base); 174 } 168 175 next if defined $comp->{quality} and $comp->{quality} > 0; 169 176 print "Warning: mis-matched comments\n" if defined $comment and $comment ne $comp->{comment}; … … 181 188 $filename = $ipprc->filename( "PSPHOT.OUT.CMF.MEF", "$path_base.pos" ); 182 189 } 183 $filename = $ipprc->file_resolve($filename); 190 &my_die("input file does not exist: $filename", $pub_id, $PS_EXIT_SYS_ERROR) if !$ipprc->file_exists($filename); 191 my $resolved = $ipprc->file_resolve($filename); 192 193 &my_die("unable to resolve input file: $filename", $pub_id, $PS_EXIT_SYS_ERROR) if !$resolved; 194 195 $filename = $resolved; 184 196 185 197 my $data = { zp => $zp, -
tags/ipp-20101215/ippTasks/publish.pro
-
Property svn:mergeinfo
set to
/branches/czw_branch/20101203/ippTasks/publish.pro merged eligible /branches/eam_branches/ipp-20101103/ippTasks/publish.pro merged eligible /trunk/ippTasks/publish.pro merged eligible
r29962 r30414 79 79 end 80 80 add_poll_args run 81 add_poll_labels run 81 82 command $run 82 83 end … … 131 132 book getword publishRun $pageName dbname -var DBNAME 132 133 book getword publishRun $pageName output_format -var OUTPUT_FORMAT 134 book getword publishRun $pageName need_magic -var NEED_MAGIC 133 135 134 136 stdout $LOGDIR/publish.run.log … … 139 141 140 142 $run = publish_file.pl --pub_id $PUB_ID --camera $CAMERA --workdir $WORKDIR --product $PRODUCT --stage $STAGE --stage_id $STAGE_ID --output_format $OUTPUT_FORMAT --redirect-output 143 144 if ("$NEED_MAGIC" == "T") 145 $run = $run --need-magic 146 end 147 141 148 add_standard_args run 142 149 -
Property svn:mergeinfo
set to
-
tags/ipp-20101215/ippTasks/survey.pro
- Property svn:mergeinfo deleted
r30321 r30414 367 367 # user functions to manipulate publish labels 368 368 macro survey.add.publish 369 if ($0 != 3)370 echo "USAGE: survey.add.publish ( label) (client_id)"369 if ($0 != 5) 370 echo "USAGE: survey.add.publish (tag) (label) (client_id) (comment)" 371 371 break 372 372 end 373 373 book newpage SURVEY_PUBLISH $1 374 book setword SURVEY_PUBLISH $1 CLIENT_ID $2 374 book setword SURVEY_PUBLISH $1 LABEL $2 375 book setword SURVEY_PUBLISH $1 CLIENT_ID $3 376 book setword SURVEY_PUBLISH $1 COMMENT $4 375 377 book setword SURVEY_PUBLISH $1 STATE PENDING 376 378 end … … 1089 1091 endif 1090 1092 1091 book getpage SURVEY_PUBLISH 0 -var label -key STATE NEW 1092 if ("$label" == "NULL") 1093 # All labels have been done --- reset 1094 # echo "Resetting labels" 1093 # survey.publish allows multiple entries per label. 1094 # The key is called tag and must be unique 1095 book getpage SURVEY_PUBLISH 0 -var tag -key STATE NEW 1096 if ("$tag" == "NULL") 1097 # All tags have been done --- reset 1098 # echo "Resetting tags" 1095 1099 for i 0 $N 1096 book getpage SURVEY_PUBLISH $i -var label1097 book setword SURVEY_PUBLISH $ labelSTATE NEW1100 book getpage SURVEY_PUBLISH $i -var tag 1101 book setword SURVEY_PUBLISH $tag STATE NEW 1098 1102 end 1099 book getpage SURVEY_PUBLISH 0 -var label-key STATE NEW1103 book getpage SURVEY_PUBLISH 0 -var tag -key STATE NEW 1100 1104 1101 1105 # Select different database … … 1104 1108 end 1105 1109 1106 book setword SURVEY_PUBLISH $label STATE DONE 1107 book getword SURVEY_PUBLISH $label CLIENT_ID -var client_id 1110 book setword SURVEY_PUBLISH $tag STATE DONE 1111 book getword SURVEY_PUBLISH $tag LABEL -var label 1112 book getword SURVEY_PUBLISH $tag CLIENT_ID -var client_id 1113 book getword SURVEY_PUBLISH $tag COMMENT -var comment 1108 1114 1109 1115 $run = pubtool -definerun -label $label -client_id $client_id 1116 1117 if ("$comment" != "NULL") 1118 $run = $run -comment $comment 1119 end 1110 1120 1111 1121 if ($DB:n == 0) … … 1116 1126 end 1117 1127 1118 #echo $run 1128 echo $run 1129 1119 1130 command $run 1131 1120 1132 end 1121 1133 -
tags/ipp-20101215/ippTools/share/pubtool_pending.sql
- Property svn:mergeinfo set to
r29962 r30414 10 10 publishClient.workdir, 11 11 publishClient.output_format, 12 publishClient.magicked AS need_magic, 12 13 diffRun.diff_id AS stage_id, 13 14 rawExp.camera, … … 37 38 publishClient.workdir, 38 39 publishClient.output_format, 40 publishClient.magicked AS need_magic, 39 41 camRun.cam_id AS stage_id, 40 42 rawExp.camera, … … 59 61 publishClient.workdir, 60 62 publishClient.output_format, 63 publishClient.magicked AS need_magic, 61 64 diffPhotRun.diff_phot_id AS stage_id, 62 65 rawExp.camera, -
tags/ipp-20101215/ippTools/src/pubtool.c
- Property svn:mergeinfo set to
r29962 r30414 167 167 PXOPT_COPY_STR(config->args, diffWhere, "-filter", "rawExp.filter", "LIKE"); 168 168 PXOPT_COPY_STR(config->args, diffWhere, "-obs_mode", "rawExp.obs_mode", "LIKE"); 169 PXOPT_COPY_STR(config->args, diffWhere, "-comment", "rawExp.comment", "LIKE"); 169 170 170 171 PXOPT_COPY_S64(config->args, camWhere, "-client_id", "client_id", "=="); -
tags/ipp-20101215/ippTools/src/pubtoolConfig.c
- Property svn:mergeinfo set to
r29962 r30414 66 66 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-label", PS_META_DUPLICATE_OK, "set and search by label", NULL); 67 67 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-data_group", PS_META_DUPLICATE_OK, "search by data_group", NULL); 68 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-comment", 0, "search by comment", NULL); 68 69 psMetadataAddTime(definerunArgs, PS_LIST_TAIL, "-dateobs_begin", 0, "search for exposures by time (>=)", NULL); 69 70 psMetadataAddTime(definerunArgs, PS_LIST_TAIL, "-dateobs_end", 0, "search for exposures by time (<=)", NULL);
Note:
See TracChangeset
for help on using the changeset viewer.
