Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JarronL committed Oct 14, 2019
1 parent ae6fd01 commit e0590ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pynrc/maths/coords.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ def dist_image(image, pixscale=None, center=None, return_theta=False):
y = y - center[1]

rho = np.sqrt(x**2 + y**2)
if pixscale is not None: rho *= pixscale
if pixscale is not None:
rho *= pixscale

if return_theta:
return rho, np.arctan2(-x,y)*180/np.pi
Expand Down
3 changes: 3 additions & 0 deletions pynrc/nrc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1557,6 +1557,7 @@ def wfed_coeff(filter, force=False, save=True, save_name=None, **kwargs):

if save:
np.save(save_name, cf_fit)
_log.warn('Done.')

return cf_fit

Expand Down Expand Up @@ -1694,6 +1695,7 @@ def field_coeff(filter, coeff0, force=False, save=True, save_name=None, **kwargs

if save:
np.save(save_name, A_lsq)
_log.warn('Done.')

return A_lsq

Expand Down Expand Up @@ -1822,6 +1824,7 @@ def wedge_coeff(filter, pupil, mask, force=False, save=True, save_name=None, **k
if save:
np.save(save_name, cf_fit)

_log.warn('Done.')
return cf_fit


Expand Down

0 comments on commit e0590ab

Please sign in to comment.