Commit 40392bda authored by Javier Quinteros's avatar Javier Quinteros

Clean log level messages

parent b6b6a0d2
......@@ -305,10 +305,10 @@ class TDMS(object):
self.__sampleend = ceil((self.__twend - self.starttime).total_seconds() * self.sampling_rate)
# print(self.__twend, self.starttime, (self.__twend - self.starttime).total_seconds(), self.__sampleend)
logs.info('Samples: %s' % self.samples)
logs.info('Samples selected: %s-%s' % (self.__samplestart, self.__sampleend))
logs.info('Total chunks size: %s' % (self.__segmentOffset - self.__dataOffset))
logs.info('Length of channel: %d' % ((self.__segmentOffset - self.__dataOffset)/numChannels/self.__data2mask[datatype][1]))
logs.debug('Samples: %s' % self.samples)
logs.debug('Samples selected: %s-%s' % (self.__samplestart, self.__sampleend))
logs.debug('Total chunks size: %s' % (self.__segmentOffset - self.__dataOffset))
logs.debug('Length of channel: %d' % ((self.__segmentOffset - self.__dataOffset)/numChannels/self.__data2mask[datatype][1]))
if self.__chstart >= numChannels:
logs.error('Cannot export from channel %s. Only %s channels present.' % (self.__chstart, numChannels))
......@@ -354,8 +354,8 @@ class TDMS(object):
'starttime': UTCDateTime(self.__twstart),
'mseed': {'byteorder': self.__endian,
'reclen': 512}}
logs.info('Stats: %s' % stats)
logs.info('Data length: %d; First component: %s' % (len(data), data[0]))
logs.debug('Stats: %s' % stats)
logs.debug('Data length: %d; First component: %s' % (len(data), data[0]))
yield (data, stats)
# Read data in blocks
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment