@@ -420,7 +420,7 class JRODataReader(JRODataIO, ProcessingUnit): | |||||
420 | for thisPath in os.listdir(path): |
|
420 | for thisPath in os.listdir(path): | |
421 | if os.path.isdir(os.path.join(path, thisPath)): |
|
421 | if os.path.isdir(os.path.join(path, thisPath)): | |
422 | dirList.append(thisPath) |
|
422 | dirList.append(thisPath) | |
423 |
|
423 | |||
424 | if not(dirList): |
|
424 | if not(dirList): | |
425 | return None, None, None, None, None |
|
425 | return None, None, None, None, None | |
426 |
|
426 | |||
@@ -431,12 +431,16 class JRODataReader(JRODataIO, ProcessingUnit): | |||||
431 |
|
431 | |||
432 | else: |
|
432 | else: | |
433 | fullpath = path |
|
433 | fullpath = path | |
|
434 | ||||
|
435 | print "%d folder was found: " %(fullpath ) | |||
434 |
|
436 | |||
435 | filename = getlastFileFromPath(fullpath, ext) |
|
437 | filename = getlastFileFromPath(fullpath, ext) | |
436 |
|
438 | |||
437 | if not(filename): |
|
439 | if not(filename): | |
438 | return None, None, None, None, None |
|
440 | return None, None, None, None, None | |
439 |
|
441 | |||
|
442 | print "%s file was found" %(filename) | |||
|
443 | ||||
440 | if not(self.__verifyFile(os.path.join(fullpath, filename))): |
|
444 | if not(self.__verifyFile(os.path.join(fullpath, filename))): | |
441 | return None, None, None, None, None |
|
445 | return None, None, None, None, None | |
442 |
|
446 | |||
@@ -1849,7 +1853,7 class SpectraReader(JRODataReader): | |||||
1849 |
|
1853 | |||
1850 | self.path = None |
|
1854 | self.path = None | |
1851 |
|
1855 | |||
1852 |
self.delay = |
|
1856 | self.delay = 60 #seconds | |
1853 |
|
1857 | |||
1854 | self.nTries = 3 #quantity tries |
|
1858 | self.nTries = 3 #quantity tries | |
1855 |
|
1859 |
General Comments 0
You need to be logged in to leave comments.
Login now