aboutsummaryrefslogtreecommitdiffstats
path: root/Commons
diff options
context:
space:
mode:
authorVolker Hoffmann <volker@cheleb.net>2013-08-30 10:33:01 +0200
committerVolker Hoffmann <volker@cheleb.net>2013-08-30 10:33:09 +0200
commit0aff8abf83213fb00646cd60204e2074397ea493 (patch)
tree7977fb1132ab3a06df877de65d701d3d88e70e7d /Commons
parente0e436f6b80822a81403418360f6a08a65803408 (diff)
use pi from numpy
Diffstat (limited to 'Commons')
-rw-r--r--Commons/Loaders.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Commons/Loaders.py b/Commons/Loaders.py
index 41900b5..827ef11 100644
--- a/Commons/Loaders.py
+++ b/Commons/Loaders.py
@@ -1,4 +1,5 @@
from Structs import Snapshot, Particle
+import numpy as np
class Loader():
def __init__(self, nstep, fname, ellipses):
@@ -57,7 +58,7 @@ class SSAscii(Loader):
for line in lines:
line = line.strip().split(" ")
if first:
- self.snapshot.tout = float(line[0]) / 2. / pi # TU -> yr
+ self.snapshot.tout = float(line[0]) / 2. / np.pi # TU -> yr
first = False
particle = Particle()
particle.id = float(line[1])