From 21015c7a428ab3bbc4d58dac930ee44c8cd262c5 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Wed, 3 Oct 2018 09:38:42 -0500 Subject: make sure wavelengths are uniformly spaced since we're using interp1d() --- src/quantum_efficiency.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/quantum_efficiency.c') 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; -- cgit