@@ -254,11 +254,17 class JRODataReader(JRODataIO): | |||||
254 | pass |
|
254 | pass | |
255 |
|
255 | |||
256 | else: |
|
256 | else: | |
257 | print "Searching file in offline mode" |
|
257 | print "Searching files in offline mode" | |
258 | pathList, filenameList = self.__searchFilesOffLine(path, startDate, endDate, startTime, endTime, set, expLabel, ext) |
|
258 | pathList, filenameList = self.__searchFilesOffLine(path, startDate, endDate, startTime, endTime, set, expLabel, ext) | |
|
259 | ||||
259 | if not(pathList): |
|
260 | if not(pathList): | |
260 | print "No files in range: %s - %s"%(datetime.datetime.combine(startDate,startTime).ctime(), datetime.datetime.combine(endDate,endTime).ctime()) |
|
261 | print "No *%s files into the folder %s \nfor the range: %s - %s"%(ext, path, | |
261 | return None |
|
262 | datetime.datetime.combine(startDate,startTime).ctime(), | |
|
263 | datetime.datetime.combine(endDate,endTime).ctime()) | |||
|
264 | ||||
|
265 | sys.exit(-1) | |||
|
266 | ||||
|
267 | ||||
262 | self.fileIndex = -1 |
|
268 | self.fileIndex = -1 | |
263 | self.pathList = pathList |
|
269 | self.pathList = pathList | |
264 | self.filenameList = filenameList |
|
270 | self.filenameList = filenameList | |
@@ -275,7 +281,7 class JRODataReader(JRODataIO): | |||||
275 | else: |
|
281 | else: | |
276 | print "No files" |
|
282 | print "No files" | |
277 |
|
283 | |||
278 | return None |
|
284 | sys.exit(-1) | |
279 |
|
285 | |||
280 | # self.updateDataHeader() |
|
286 | # self.updateDataHeader() | |
281 |
|
287 |
@@ -377,7 +377,7 class SpectraReader(JRODataReader): | |||||
377 |
|
377 | |||
378 | self.dataOutObj.radarControllerHeaderObj = self.radarControllerHeaderObj.copy() |
|
378 | self.dataOutObj.radarControllerHeaderObj = self.radarControllerHeaderObj.copy() | |
379 |
|
379 | |||
380 | return self.data_spc |
|
380 | return self.dataOutObj.data_spc | |
381 |
|
381 | |||
382 |
|
382 | |||
383 | class SpectraWriter(JRODataWriter): |
|
383 | class SpectraWriter(JRODataWriter): |
@@ -11,7 +11,7 path = os.path.split(os.getcwd())[0] | |||||
11 | sys.path.append(path) |
|
11 | sys.path.append(path) | |
12 |
|
12 | |||
13 |
|
13 | |||
14 |
from Data. |
|
14 | from Data.JROData import Spectra | |
15 | from IO.SpectraIO import * |
|
15 | from IO.SpectraIO import * | |
16 | from Processing.SpectraProcessor import * |
|
16 | from Processing.SpectraProcessor import * | |
17 |
|
17 |
General Comments 0
You need to be logged in to leave comments.
Login now