applied pep8 norm on helper function added last commit
@@ -405,7 +405,8 @@ class LightCurveEstimator(object):
for x in in_list('end', time_holder[istart:i + 1]):
if tmp == 0:
alpha += (1 - obs_properties['deadtime'][n]) * (
- float(time_holder[x][0]) - (float(time_holder[xm1][0]) + float(time_holder[xm1-1][0]))/2) * obs_properties['A_off'][n + tmp]
+ float(time_holder[x][0]) - (float(time_holder[xm1][0]) + float(time_holder[xm1 - 1][0])) / 2) * \
+ obs_properties['A_off'][n + tmp]
time += (1 - obs_properties['deadtime'][n]) * (
float(time_holder[x][0]) - (float(time_holder[xm1][0]) + float(time_holder[xm1 - 1][0])) / 2)
xm1 = x + 1
@@ -414,12 +415,15 @@ class LightCurveEstimator(object):
alpha += (1 - obs_properties['deadtime'][n + tmp]) * (
float(time_holder[x][0]) - float(time_holder[xm1][0])) * \
obs_properties['A_off'][n + tmp]
- time += (1 - obs_properties['deadtime'][n + tmp]) * (float(time_holder[x][0]) - float(time_holder[xm1][0]))
+ time += (1 - obs_properties['deadtime'][n + tmp]) * (
+ float(time_holder[x][0]) - float(time_holder[xm1][0]))
xm1 = x + 1
tmp += 1
- alpha += (1 - obs_properties['deadtime'][n + tmp]) * ((float(time_holder[i][0])+float(time_holder[i][0]))/2 - float(time_holder[xm1][0])) * \
+ alpha += (1 - obs_properties['deadtime'][n + tmp]) * (
+ (float(time_holder[i][0]) + float(time_holder[i][0])) / 2 - float(time_holder[xm1][0])) * \
obs_properties['A_off'][n + tmp]
- time += (1 - obs_properties['deadtime'][n + tmp]) * ((float(time_holder[i][0])+float(time_holder[i][0]))/2 - float(time_holder[xm1][0]))
+ time += (1 - obs_properties['deadtime'][n + tmp]) * (
+ (float(time_holder[i][0]) + float(time_holder[i][0])) / 2 - float(time_holder[xm1][0]))
alpha = time / alpha
return alpha
