Skip to content

Commit

Permalink
removed duplicated c/python code
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlouden committed Aug 21, 2016
1 parent d10a714 commit f36b4ac
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions c_src/_web.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,6 @@ static PyObject *web_generate_planet(PyObject *self, PyObject *args)
/* Get pointers to the data as C-types. */
double *brightness_params = (double*)PyArray_DATA(bright_array);

printf("%f %f\n",lambda0,phi0);

map_model(planet_struct,n_layers,lambda0,phi0,p_u1,p_u2,bright_type,brightness_params);

/* Build the output tuple */
Expand Down
4 changes: 0 additions & 4 deletions spiderman/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ def calc_phase(self,t):
def calc_substellar(self,t):
self.calc_phase(t)
coords = sp.separation_of_centers(t,self)
print(coords)
substellar = _web.calc_substellar(self.phase,np.array(coords))
self.lambda0 = substellar[0]
self.phi0 = substellar[1]
print(self.phase)
print(self.lambda0)
print(self.phi0)
2 changes: 1 addition & 1 deletion spiderman/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def plot_system(spider_params,t,ax=False,min_temp=False,max_temp=False,temp_map=

coords = sp.separation_of_centers(t,spider_params)

planet_pix = [star_offset_pix + coords[0]*p_imrat,star_offset_pix + coords[1]*p_imrat]
planet_pix = [star_offset_pix - coords[0]*p_imrat,star_offset_pix - coords[1]*p_imrat]

ax = sp.plot_planet(spider_params,t,ax=ax,min_temp=min_temp,max_temp=max_temp,temp_map=temp_map,min_bright=min_bright,scale_planet=p_imrat,planet_cen=planet_pix)

Expand Down

0 comments on commit f36b4ac

Please sign in to comment.