indentation fixed

This commit is contained in:
Sebastian Wehling-Benatelli 2014-11-25 05:04:47 +01:00
parent 758de94fff
commit 8cb638e5bc

View File

@ -118,38 +118,38 @@ class CharacteristicFunction(object):
cutting window cutting window
''' '''
if cut is not None: if cut is not None:
if self.cut[0] == 0: if self.cut[0] == 0:
start = 0 start = 0
else: else:
start = self.cut[0] / self.dt start = self.cut[0] / self.dt
stop = self.cut[1] / self.dt stop = self.cut[1] / self.dt
if len(self.orig_data) == 1: if len(self.orig_data) == 1:
zz = self.orig_data.copy() zz = self.orig_data.copy()
z1 = zz[0].copy() z1 = zz[0].copy()
zz[0].data = z1.data[start:stop] zz[0].data = z1.data[start:stop]
data = zz data = zz
return data return data
elif len(self.orig_data) == 2: elif len(self.orig_data) == 2:
hh = self.orig_data.copy() hh = self.orig_data.copy()
h1 = hh[0].copy() h1 = hh[0].copy()
h2 = hh[1].copy() h2 = hh[1].copy()
hh[0].data = h1.data[start:stop] hh[0].data = h1.data[start:stop]
hh[1].data = h2.data[start:stop] hh[1].data = h2.data[start:stop]
data = hh data = hh
return data return data
elif len(self.orig_data) == 3: elif len(self.orig_data) == 3:
hh = self.orig_data.copy() hh = self.orig_data.copy()
h1 = hh[0].copy() h1 = hh[0].copy()
h2 = hh[1].copy() h2 = hh[1].copy()
h3 = hh[2].copy() h3 = hh[2].copy()
hh[0].data = h1.data[start:stop] hh[0].data = h1.data[start:stop]
hh[1].data = h2.data[start:stop] hh[1].data = h2.data[start:stop]
hh[2].data = h3.data[start:stop] hh[2].data = h3.data[start:stop]
data = hh data = hh
return data return data
else: else:
data = self.orig_data data = self.orig_data
return data return data
def calcCF(self, data=None): def calcCF(self, data=None):
self.cf = data self.cf = data