summaryrefslogtreecommitdiff
path: root/solids/pmts.py
diff options
context:
space:
mode:
authorAnthony LaTorre <tlatorre9@gmail.com>2011-08-17 10:36:22 -0400
committerAnthony LaTorre <tlatorre9@gmail.com>2011-08-17 10:36:22 -0400
commite33c6fab8b8dd8adb3d71af8517dfe45ba264cf7 (patch)
tree350af8a727bbb035214b6beea1915741119dd59c /solids/pmts.py
parent1476f921813e60cf3749a5d03b9ed5cbf1951db6 (diff)
downloadchroma-e33c6fab8b8dd8adb3d71af8517dfe45ba264cf7.tar.gz
chroma-e33c6fab8b8dd8adb3d71af8517dfe45ba264cf7.tar.bz2
chroma-e33c6fab8b8dd8adb3d71af8517dfe45ba264cf7.zip
import chroma modules from subpackages with import chroma.module_name
Diffstat (limited to 'solids/pmts.py')
-rw-r--r--solids/pmts.py14
1 files changed, 4 insertions, 10 deletions
diff --git a/solids/pmts.py b/solids/pmts.py
index fcbc8fc..43aed3f 100644
--- a/solids/pmts.py
+++ b/solids/pmts.py
@@ -1,14 +1,8 @@
-import os
-import sys
-
-dir = os.path.split(os.path.realpath(__file__))[0]
-sys.path.append(dir + '/..')
-
import numpy as np
-from geometry import Solid
-from make import rotate_extrude
-from optics import *
-from tools import read_csv, offset
+from chroma.geometry import Solid
+from chroma.make import rotate_extrude
+from chroma.optics import *
+from chroma.tools import read_csv, offset
def get_lc_profile(radii, a, b, d, rmin, rmax):
c = -b*np.sqrt(1 - (rmin-d)**2/a**2)