diff options
author | tlatorre <tlatorre@uchicago.edu> | 2018-10-03 09:38:42 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2018-10-03 09:38:42 -0500 |
commit | 21015c7a428ab3bbc4d58dac930ee44c8cd262c5 (patch) | |
tree | 22fdcd4664b526fdb45a40a455b4611640cd6e99 /src/quantum_efficiency.c | |
parent | eaa96130f5cfa6bcff25021f75448c426a39ebcc (diff) | |
download | sddm-21015c7a428ab3bbc4d58dac930ee44c8cd262c5.tar.gz sddm-21015c7a428ab3bbc4d58dac930ee44c8cd262c5.tar.bz2 sddm-21015c7a428ab3bbc4d58dac930ee44c8cd262c5.zip |
make sure wavelengths are uniformly spaced since we're using interp1d()
Diffstat (limited to 'src/quantum_efficiency.c')
-rw-r--r-- | src/quantum_efficiency.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/quantum_efficiency.c b/src/quantum_efficiency.c index a3996b7..eed64c5 100644 --- a/src/quantum_efficiency.c +++ b/src/quantum_efficiency.c @@ -55,12 +55,6 @@ static int init() y = malloc(sizeof(double)*(n+2)); size = n + 2; - /* Make sure we extrapolate to 0. */ - x[0] = 0; - y[0] = 0; - x[n+1] = 1000; - y[n+1] = 0; - i = 0; n = 0; /* Now, we actually store the values. */ @@ -93,6 +87,12 @@ static int init() } } + /* Make sure we extrapolate to 0. */ + x[0] = x[1] - 1.0; + y[0] = 0; + x[n+1] = x[n] + 1.0; + y[n+1] = 0; + fclose(f); initialized = 1; |