@@ -232,7 +232,9 class JRODataIO: | |||||
232 |
|
232 | |||
233 | raise ValueError, "Not implemented" |
|
233 | raise ValueError, "Not implemented" | |
234 |
|
234 | |||
|
235 | def getOuput(self): | |||
235 |
|
236 | |||
|
237 | return self.dataOut | |||
236 |
|
238 | |||
237 | class JRODataReader(JRODataIO): |
|
239 | class JRODataReader(JRODataIO): | |
238 |
|
240 |
@@ -139,6 +139,14 class ProcessingUnit: | |||||
139 | self.callObject(operationConf.id, **kwargs) |
|
139 | self.callObject(operationConf.id, **kwargs) | |
140 | return |
|
140 | return | |
141 |
|
|
141 | ||
|
142 | def setInput(self, dataIn): | |||
|
143 | ||||
|
144 | self.dataIn = dataIn | |||
|
145 | ||||
|
146 | def getOutput(self): | |||
|
147 | ||||
|
148 | return self.dataOut | |||
|
149 | ||||
142 | class Operation(): |
|
150 | class Operation(): | |
143 |
|
151 | |||
144 | """ |
|
152 | """ | |
@@ -185,18 +193,6 class VoltageProc(ProcessingUnit): | |||||
185 | self.objectDict = {} |
|
193 | self.objectDict = {} | |
186 | self.dataOut = Voltage() |
|
194 | self.dataOut = Voltage() | |
187 |
|
195 | |||
188 |
|
||||
189 | def setup(self, dataIn=None, dataOut=None): |
|
|||
190 |
|
||||
191 | self.dataIn = dataIn |
|
|||
192 |
|
||||
193 | if self.dataOut == None: |
|
|||
194 | dataOut = Voltage() |
|
|||
195 |
|
||||
196 | self.dataOut = dataOut |
|
|||
197 |
|
||||
198 | return self.dataOut |
|
|||
199 |
|
||||
200 | def init(self): |
|
196 | def init(self): | |
201 |
|
197 | |||
202 | self.dataOut.copy(self.dataIn) |
|
198 | self.dataOut.copy(self.dataIn) |
General Comments 0
You need to be logged in to leave comments.
Login now