Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed more bugs

  • Loading branch information...
commit 804c1b75e1533fb9cc7ffb454046843a070cf4a1 1 parent 1d101ec
@kbouch kbouch authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 fitLine.py
View
6 fitLine.py
@@ -47,7 +47,7 @@ def vposition_of_projection_centroid(eventscatter,vnorm):
net_vprojposit[2] += vector[2]
pointcount = len(eventscatter)*1.0
for i in range(0,3):
- net_vprojposit[i] = (netvprojposit[i] / (pointcount * 1.0))
+ net_vprojposit[i] = (net_vprojposit[i] / (pointcount * 1.0))
return (net_vprojposit, list_vprojposit)
@@ -69,7 +69,7 @@ def normgen(theta,phi):
vnorm[0] = math.cos(theta)
vnorm[1] = math.sin(theta)
vnorm[2] = math.cos(phi)
-
+ return vnorm
@@ -89,7 +89,7 @@ def recurse_theta(eventscatter,start,wedge,phi,acc):
compare = triallist[0]
else:
compare = triallist[1]
- if math.fabs((trialA - compare[0])/trailA) < acc:
+ if math.fabs((trialA - compare[0])/trialA) < acc:
return compare[1]
if trialA < compare:
newstart = start
Please sign in to comment.
Something went wrong with that request. Please try again.