diff options
author | Stan Seibert <stan@mtrr.org> | 2011-08-17 14:38:45 -0400 |
---|---|---|
committer | Stan Seibert <stan@mtrr.org> | 2011-08-17 14:38:45 -0400 |
commit | b88e37c5c7de5411fb003a3c146a1b697b5813ad (patch) | |
tree | ce6b6bc992a901da7e83097bfe22d2b1f3ced09f /color/chromaticity.py | |
parent | ee07d0165f86ef6942bffd6ae88057926ab4e775 (diff) | |
parent | 11210ce25a543875eb51cff8efc06e7f02984214 (diff) | |
download | chroma-b88e37c5c7de5411fb003a3c146a1b697b5813ad.tar.gz chroma-b88e37c5c7de5411fb003a3c146a1b697b5813ad.tar.bz2 chroma-b88e37c5c7de5411fb003a3c146a1b697b5813ad.zip |
merge
Diffstat (limited to 'color/chromaticity.py')
-rw-r--r-- | color/chromaticity.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/color/chromaticity.py b/color/chromaticity.py index 859cc14..0076957 100644 --- a/color/chromaticity.py +++ b/color/chromaticity.py @@ -1,14 +1,8 @@ import numpy as np -import os -import sys +from os.path import realpath, dirname +from chroma.tools import read_csv -dir = os.path.split(os.path.realpath(__file__))[0] - -sys.path.append(dir + '/..') - -from tools import read_csv - -color_map = read_csv(dir + '/ciexyz64_1.csv') +color_map = read_csv(dirname(realpath(__file__)) + '/ciexyz64_1.csv') def map_wavelength(wavelength): r = np.interp(wavelength, color_map[:,0], color_map[:,1]) |