@@ -0,0 +1,11 | |||||
|
1 | ## ROADMAP | |||
|
2 | ## SCHAIN BRANCHES | |||
|
3 | ||||
|
4 | ### BRANCH - SCHAIN_MP | |||
|
5 | ||||
|
6 | * Revisar si funciona con varios publishers. | |||
|
7 | * Revisar xRange y reinicialización de gráfico. | |||
|
8 | * Grabar cada spectra independientemente. | |||
|
9 | * Agregar kwargs al init | |||
|
10 | * Agregar gráficos restantes | |||
|
11 | * Presentación |
@@ -125,8 +125,8 class PlotData(Operation, Process): | |||||
125 | self.__plot() |
|
125 | self.__plot() | |
126 |
|
126 | |||
127 | if 'ENDED' in self.data: |
|
127 | if 'ENDED' in self.data: | |
128 | #self.setup() |
|
128 | # self.setup() | |
129 | #self.__plot() |
|
129 | # self.__plot() | |
130 | pass |
|
130 | pass | |
131 |
|
131 | |||
132 | except zmq.Again as e: |
|
132 | except zmq.Again as e: |
@@ -39,6 +39,8 class ProcessingUnit(object): | |||||
39 | self.isConfig = False |
|
39 | self.isConfig = False | |
40 |
|
40 | |||
41 | self.args = args |
|
41 | self.args = args | |
|
42 | # if (kwargs): | |||
|
43 | # self.kwargs = kwargs | |||
42 | self.kwargs = kwargs |
|
44 | self.kwargs = kwargs | |
43 |
|
45 | |||
44 | def addOperation(self, opObj, objId): |
|
46 | def addOperation(self, opObj, objId): |
@@ -363,7 +363,7 class ReceiverData(ProcessingUnit, Process): | |||||
363 | if self.dataOut.finished is True: |
|
363 | if self.dataOut.finished is True: | |
364 | self.send(self.data) |
|
364 | self.send(self.data) | |
365 | self.connections -= 1 |
|
365 | self.connections -= 1 | |
366 | if self.connections==0 and self.started: |
|
366 | if self.connections == 0 and self.started: | |
367 | self.ended = True |
|
367 | self.ended = True | |
368 | self.data['ENDED'] = True |
|
368 | self.data['ENDED'] = True | |
369 | self.send(self.data) |
|
369 | self.send(self.data) |
@@ -13,10 +13,10 def main(date): | |||||
13 |
|
13 | |||
14 | controllerObj = Project() |
|
14 | controllerObj = Project() | |
15 |
|
15 | |||
16 |
controllerObj.setup(id |
|
16 | controllerObj.setup(id='191', name='test01', description='') | |
17 |
|
17 | |||
18 | readUnitConfObj = controllerObj.addReadUnit(datatype='Spectra', |
|
18 | readUnitConfObj = controllerObj.addReadUnit(datatype='Spectra', | |
19 |
path='/ |
|
19 | path='/home/nanosat/data/zeus', | |
20 | startDate=date, |
|
20 | startDate=date, | |
21 | endDate=date, |
|
21 | endDate=date, | |
22 | startTime='00:00:00', |
|
22 | startTime='00:00:00', | |
@@ -44,7 +44,7 def main(date): | |||||
44 | # opObj11.addParameter(name='zmin', value='10', format='int') |
|
44 | # opObj11.addParameter(name='zmin', value='10', format='int') | |
45 | # opObj11.addParameter(name='zmax', value='35', format='int') |
|
45 | # opObj11.addParameter(name='zmax', value='35', format='int') | |
46 |
|
46 | |||
47 |
|
47 | |||
48 |
|
48 | |||
49 |
|
49 | |||
50 | opObj11 = procUnitConfObj1.addOperation(name='PlotRTIData', optype='other') |
|
50 | opObj11 = procUnitConfObj1.addOperation(name='PlotRTIData', optype='other') | |
@@ -66,12 +66,10 def main(date): | |||||
66 | controllerObj.start() |
|
66 | controllerObj.start() | |
67 |
|
67 | |||
68 | if __name__=='__main__': |
|
68 | if __name__=='__main__': | |
69 |
|
69 | |||
70 | dt = datetime(2017, 1, 12) |
|
70 | dt = datetime(2017, 1, 12) | |
71 |
|
71 | |||
72 |
dates = [(dt+timedelta(x)).strftime('%Y/%m/%d') |
|
72 | dates = [(dt+timedelta(x)).strftime('%Y/%m/%d') for x in range(20)] | |
73 |
|
73 | |||
74 | p = multiprocessing.Pool(4) |
|
74 | p = multiprocessing.Pool(4) | |
75 | p.map(main, dates) |
|
75 | p.map(main, dates) | |
76 |
|
||||
77 | No newline at end of file |
|
@@ -12,7 +12,7 if __name__ == '__main__': | |||||
12 | desc = "Segundo Test" |
|
12 | desc = "Segundo Test" | |
13 |
|
13 | |||
14 | controllerObj = Project() |
|
14 | controllerObj = Project() | |
15 |
controllerObj.setup(id |
|
15 | controllerObj.setup(id='191', name='test01', description=desc) | |
16 |
|
16 | |||
17 | proc1 = controllerObj.addProcUnit(name='ReceiverData') |
|
17 | proc1 = controllerObj.addProcUnit(name='ReceiverData') | |
18 | # proc1.addParameter(name='server', value='tcp://10.10.10.87:3000', format='str') |
|
18 | # proc1.addParameter(name='server', value='tcp://10.10.10.87:3000', format='str') |
General Comments 0
You need to be logged in to leave comments.
Login now