@@ -399,7 +399,7 class HDFWriter(Operation): | |||
|
399 | 399 | return |
|
400 | 400 | |
|
401 | 401 | def setup(self, path=None, blocksPerFile=10, metadataList=None, dataList=None, setType=None, |
|
402 |
description= |
|
|
402 | description={},timeZone = "ut",hourLimit = 3, breakDays=True): | |
|
403 | 403 | self.path = path |
|
404 | 404 | self.blocksPerFile = blocksPerFile |
|
405 | 405 | self.metadataList = metadataList |
@@ -442,9 +442,10 class HDFWriter(Operation): | |||
|
442 | 442 | |
|
443 | 443 | def timeFlag(self): |
|
444 | 444 | currentTime = self.dataOut.utctime |
|
445 | timeTuple = None | |
|
445 | 446 | if self.timeZone == "lt": |
|
446 | 447 | timeTuple = time.localtime(currentTime) |
|
447 | elif self.timeZone == "ut": | |
|
448 | else : | |
|
448 | 449 | timeTuple = time.gmtime(currentTime) |
|
449 | 450 | |
|
450 | 451 | dataDay = timeTuple.tm_yday |
@@ -484,6 +485,7 class HDFWriter(Operation): | |||
|
484 | 485 | ext = self.ext |
|
485 | 486 | path = self.path |
|
486 | 487 | setFile = self.setFile |
|
488 | timeTuple = None | |
|
487 | 489 | if self.timeZone == "lt": |
|
488 | 490 | timeTuple = time.localtime(self.dataOut.utctime) |
|
489 | 491 | elif self.timeZone == "ut": |
@@ -643,6 +645,7 class HDFWriter(Operation): | |||
|
643 | 645 | if (self.blockIndex == self.blocksPerFile) or self.timeFlag(): |
|
644 | 646 | self.closeFile() |
|
645 | 647 | self.setNextFile() |
|
648 | print("breaking file") | |
|
646 | 649 | |
|
647 | 650 | for i, ds in enumerate(self.ds): |
|
648 | 651 | attr, ch = self.data[i] |
@@ -121,7 +121,7 class SpectraProc(ProcessingUnit): | |||
|
121 | 121 | self.dataOut.flagShiftFFT = False |
|
122 | 122 | |
|
123 | 123 | def run(self, nProfiles=None, nFFTPoints=None, pairsList=None, ippFactor=None, shift_fft=False): |
|
124 | ||
|
124 | #print("spectra run") | |
|
125 | 125 | if self.dataIn.type == "Spectra": |
|
126 | 126 | self.dataOut.copy(self.dataIn) |
|
127 | 127 | if shift_fft: |
General Comments 0
You need to be logged in to leave comments.
Login now