-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from tomlouden/interpolated_temperatures
Interpolated temperatures
- Loading branch information
Showing
12 changed files
with
467 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
double *lightcurve(int n_layers, int n_points, double *t, double tc, double per, double a, double inc, double ecc, double omega, double r_s, double r2,double u1, double u2,int brightness_model,double* brightness_params); | ||
double *lightcurve(int n_layers, int n_points, double *t, double tc, double per, double a, double inc, double ecc, double omega, double r_s, double r2,double u1, double u2,int brightness_model,double* brightness_params,double* stellar_teff,double* stellar_flux,int nstars); | ||
double *call_blocked(int n_layers, int n_points, double *x2, double *y2, double r2); | ||
double calc_phase(double t, double t0, double per); | ||
double *calc_substellar(double phase, double *coords); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,28 @@ | ||
from os.path import expanduser,join | ||
home = expanduser("~") | ||
param_file = join(home,'.spidermanrc') | ||
|
||
class RcParams(object): | ||
def __init__(self): | ||
self.dict = {} | ||
try: | ||
print 'looking for spidermanrc file at '+param_file | ||
for line in open(param_file): | ||
key = line.split(':')[0].replace(' ','') | ||
cval = line.split(':')[1].replace(' ','') | ||
self.dict[key] = cval | ||
RcParams.read = True | ||
except: | ||
RcParams.read = False | ||
print 'no spidermanrc file detected' | ||
def __getitem__(self, key): | ||
return self.dict[key] | ||
rcParams = RcParams() | ||
|
||
from spiderman.params import * | ||
from spiderman.web import * | ||
from spiderman.plot import * | ||
from spiderman.test import * | ||
from spiderman.stellar_grid import * | ||
|
||
__all__ = ["web","params","_web","plot","test"] | ||
__all__ = ["web","params","_web","plot","test","stellar_grid"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.