Changeset 9081 for trunk/ippTasks/detrend.stack.pro
- Timestamp:
- Sep 30, 2006, 12:27:01 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/detrend.stack.pro (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/detrend.stack.pro
r8691 r9081 13 13 ## these tasks use the queue DetrendImfilesToProcess 14 14 ## the DetrendClassIDtoStack queue contains: 15 ## STATE DET_ID ITER TYPE CLASS_ID 15 ## STATE DET_ID ITER TYPE CLASS_ID CAMERA 16 17 queueinit DetrendClassIDtoStack 18 if ($?network == 0) 19 $network = 1 20 end 21 if ($?parallel == 0) 22 $parallel = 0 23 end 16 24 17 25 # select images ready for copy … … 24 32 periods -poll 1 25 33 periods -exec 5 26 periods -timeout 30 34 periods -timeout 5 35 36 stdout dettool.stack.log 37 stderr dettool.stack.log 27 38 28 39 # success … … 42 53 $TYPE = $word:2 43 54 $CLASS_ID = $word:3 44 queuepush DetrendClassIDtoStack -uniq -key 1:2:4 "NEW $DET_ID $ITER $TYPE $CLASS_ID" 55 $CAMERA = $word:4 56 echo queuepush DetrendClassIDtoStack -uniq -key 1:2:4 "NEW $DET_ID $ITER $TYPE $CLASS_ID $CAMERA" 57 queuepush DetrendClassIDtoStack -uniq -key 1:2:4 "NEW $DET_ID $ITER $TYPE $CLASS_ID $CAMERA" 45 58 end 46 59 … … 69 82 periods -poll 0.5 70 83 periods -exec 1.0 71 periods -timeout 584 periods -timeout 60 72 85 73 86 task.exec … … 89 102 # STATE DET_ID ITER TYPE CLASS_ID 90 103 ## NOTE: the queue has the STATE prepended 104 # use local variables 91 105 list word -split $line 92 $DET_ID = $word:1 93 $ITER = $word:2 94 $TYPE = $word:3 95 $CLASS_ID = $word:4 106 $DET_ID = $word:0 107 $ITER = $word:1 108 $TYPE = $word:2 109 $CLASS_ID = $word:3 110 $CAMERA = $word:3 111 112 stdout $CAMERA.$TYPE.$DET_ID.$ITER.$CLASS_ID.log 113 stderr $CAMERA.$TYPE.$DET_ID.$ITER.$CLASS_ID.log 96 114 97 115 # specify choice of remote host: 98 host anyhost 116 if ($parallel) 117 host anyhost 118 else 119 host local 120 end 99 121 100 122 # create example job options as a demonstration 101 123 options "$line" 102 # detrend_stack.pl 1 0 mc bias 103 command detrend_stack.pl $DET_ID $ITER $CLASS_ID $TYPE 124 # detrend_stack.pl --det_id 1 --iteration 0 --class_id isp --det_type bias --camera ISP || exit 1 125 echo command detrend_stack.pl --det_id $DET_ID --iteration $ITER --class_id $CLASS_ID --det_type $TYPE --camera $CAMERA 126 command detrend_stack.pl --det_id $DET_ID --iteration $ITER --class_id $CLASS_ID --det_type $TYPE --camera $CAMERA 104 127 end 105 128 … … 116 139 # operation times out? 117 140 task.exit timeout 118 queuepush DetrendClassIDtoStack -replace -key 1:2:4 " FAIL$options:0"141 queuepush DetrendClassIDtoStack -replace -key 1:2:4 "TIMEOUT $options:0" 119 142 end 120 143 end
Note:
See TracChangeset
for help on using the changeset viewer.
