@@ -1050,7 +1050,7 class BeaconPhase(Figure): | |||||
1050 | self.xdata = None |
|
1050 | self.xdata = None | |
1051 | self.ydata = None |
|
1051 | self.ydata = None | |
1052 |
|
1052 | |||
1053 |
self.PLOT_CODE = |
|
1053 | self.PLOT_CODE = 18 | |
1054 | self.FTP_WEI = None |
|
1054 | self.FTP_WEI = None | |
1055 | self.EXP_CODE = None |
|
1055 | self.EXP_CODE = None | |
1056 | self.SUB_EXP_CODE = None |
|
1056 | self.SUB_EXP_CODE = None | |
@@ -1102,8 +1102,8 class BeaconPhase(Figure): | |||||
1102 | if pairsIndexList == []: |
|
1102 | if pairsIndexList == []: | |
1103 | return |
|
1103 | return | |
1104 |
|
1104 | |||
1105 | if len(pairsIndexList) > 4: |
|
1105 | # if len(pairsIndexList) > 4: | |
1106 | pairsIndexList = pairsIndexList[0:4] |
|
1106 | # pairsIndexList = pairsIndexList[0:4] | |
1107 |
|
1107 | |||
1108 | if timerange != None: |
|
1108 | if timerange != None: | |
1109 | self.timerange = timerange |
|
1109 | self.timerange = timerange | |
@@ -1156,9 +1156,6 class BeaconPhase(Figure): | |||||
1156 | self.PLOT_POS = plot_pos |
|
1156 | self.PLOT_POS = plot_pos | |
1157 |
|
1157 | |||
1158 | self.name = thisDatetime.strftime("%Y%m%d_%H%M%S") |
|
1158 | self.name = thisDatetime.strftime("%Y%m%d_%H%M%S") | |
1159 |
|
||||
1160 |
|
||||
1161 | self.name = thisDatetime.strftime("%Y%m%d_%H%M%S") |
|
|||
1162 | self.__isConfig = True |
|
1159 | self.__isConfig = True | |
1163 |
|
1160 | |||
1164 | self.xdata = numpy.array([]) |
|
1161 | self.xdata = numpy.array([]) | |
@@ -1188,6 +1185,32 class BeaconPhase(Figure): | |||||
1188 | ) |
|
1185 | ) | |
1189 |
|
1186 | |||
1190 | self.draw() |
|
1187 | self.draw() | |
|
1188 | ||||
|
1189 | if save: | |||
|
1190 | ||||
|
1191 | self.counter_imagwr += 1 | |||
|
1192 | if (self.counter_imagwr==wr_period): | |||
|
1193 | if figfile == None: | |||
|
1194 | figfile = self.getFilename(name = self.name) | |||
|
1195 | self.saveFigure(figpath, figfile) | |||
|
1196 | ||||
|
1197 | if ftp: | |||
|
1198 | #provisionalmente envia archivos en el formato de la web en tiempo real | |||
|
1199 | name = self.getNameToFtp(thisDatetime, self.FTP_WEI, self.EXP_CODE, self.SUB_EXP_CODE, self.PLOT_CODE, self.PLOT_POS) | |||
|
1200 | path = '%s%03d' %(self.PREFIX, self.id) | |||
|
1201 | ftp_file = os.path.join(path,'ftp','%s.png'%name) | |||
|
1202 | self.saveFigure(figpath, ftp_file) | |||
|
1203 | ftp_filename = os.path.join(figpath,ftp_file) | |||
|
1204 | self.sendByFTP_Thread(ftp_filename, server, folder, username, password) | |||
|
1205 | ||||
|
1206 | self.counter_imagwr = 0 | |||
|
1207 | ||||
|
1208 | if x[1] + (x[1]-x[0]) >= self.axesList[0].xmax: | |||
|
1209 | self.__isConfig = False | |||
|
1210 | del self.xdata | |||
|
1211 | del self.ydata | |||
|
1212 | ||||
|
1213 | ||||
1191 |
|
1214 | |||
1192 |
|
1215 | |||
1193 | class Noise(Figure): |
|
1216 | class Noise(Figure): |
General Comments 0
You need to be logged in to leave comments.
Login now