Changeset 20382 for trunk/ippTasks/flatcorr.pro
- Timestamp:
- Oct 24, 2008, 3:05:17 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/flatcorr.pro (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/flatcorr.pro
r20229 r20382 66 66 67 67 # check the list of pending flatcorr runs 68 periods -poll 1069 periods -exec 12068 periods -poll $LOADPOLL 69 periods -exec $LOADEXEC 70 70 periods -timeout 60 71 71 npending 1 72 72 73 # define the command (does not depend on previous queries) 74 if ($DB:n == 0) 75 command flatcorr -addcamera 76 else 77 # save the DB name for the exit tasks 78 # note that this DB name refers to the ippdb, not the dvodb 79 option $DB:$flatcorr_addcamera_DB 80 command flatcorr -addcamera -dbname $DB:$flatcorr_addcamera_DB 81 $flatcorr_addcamera_DB ++ 82 if ($flatcorr_addcamera_DB >= $DB:n) set flatcorr_addcamera_DB = 0 73 task.exec 74 # define the command (does not depend on previous queries) 75 if ($DB:n == 0) 76 command flatcorr -addcamera 77 else 78 # save the DB name for the exit tasks 79 # note that this DB name refers to the ippdb, not the dvodb 80 option $DB:$flatcorr_addcamera_DB 81 command flatcorr -addcamera -dbname $DB:$flatcorr_addcamera_DB 82 $flatcorr_addcamera_DB ++ 83 if ($flatcorr_addcamera_DB >= $DB:n) set flatcorr_addcamera_DB = 0 84 end 83 85 end 84 86 … … 108 110 109 111 # check the list of pending flatcorr runs 110 periods -poll 10111 periods -exec 900112 periods -poll $LOADPOLL 113 periods -exec $LOADEXEC 112 114 periods -timeout 60 113 115 npending 1 114 116 115 117 # define the command (does not depend on previous queries) 116 $run = flatcorr -pendingprocess 117 if ($DB:n != 0) 118 # save the DB name for the exit tasks 119 option $DB:$flatcorr_pendingprocess_DB 120 $run = $run -dbname $DB:$flatcorr_pendingprocess_DB 121 $flatcorr_pendingprocess_DB ++ 122 if ($flatcorr_pendingprocess_DB >= $DB:n) set flatcorr_pendingprocess_DB = 0 123 end 124 add_poll_args run 125 command $run 118 task.exec 119 if ($DB:n == 0) 120 $run = flatcorr -pendingprocess 121 else 122 $run = flatcorr -pendingprocess 123 # save the DB name for the exit tasks 124 option $DB:$flatcorr_pendingprocess_DB 125 $run = $run -dbname $DB:$flatcorr_pendingprocess_DB 126 $flatcorr_pendingprocess_DB ++ 127 if ($flatcorr_pendingprocess_DB >= $DB:n) set flatcorr_pendingprocess_DB = 0 128 end 129 add_poll_args run 130 command $run 131 end 126 132 127 133 # silently drop stdout … … 175 181 176 182 # XXX probably need to set the output / log based on WORKDIR... 177 book getword flatcorrBook $pageName corr_id -var ID 183 book getword flatcorrBook $pageName corr_id -var CORR_ID 184 book getword flatcorrBook $pageName det_type -var DET_TYPE 178 185 book getword flatcorrBook $pageName dvodb -var DVODB 179 186 book getword flatcorrBook $pageName camera -var CAMERA … … 181 188 book getword flatcorrBook $pageName filter -var FILTER 182 189 book getword flatcorrBook $pageName dbname -var DBNAME 183 book getword flatcorrBook $pageName workdir -var WORKDIR 190 book getword flatcorrBook $pageName workdir -var WORKDIR_TEMPLATE 184 191 185 192 # specify choice of remote host … … 194 201 options $pageName 195 202 203 # see chip.pro for examples 204 set.workdir.by.camera $CAMERA FPA $WORKDIR_TEMPLATE $default_host WORKDIR 205 206 ## generate outroot specific to this exposure (& chip) 207 sprintf outroot "%s/%s.flatcorr.%s" $WORKDIR $CAMERA $CORR_ID 208 196 209 # XXX get these arguments right 197 $run = flatcorr_proc.pl --corr_id $ ID --dvodb $DVODB --camera $CAMERA --region $REGION --filter $FILTER210 $run = flatcorr_proc.pl --corr_id $CORR_ID --det_type $DET_TYPE --dvodb $DVODB --camera $CAMERA --region $REGION --filter $FILTER --workdir $outroot 198 211 add_standard_args run 199 212
Note:
See TracChangeset
for help on using the changeset viewer.
