Closed VChristiaens closed 7 years ago
@VChristiaens. Took me a while to address your comments, but it makes sense to polish VIP as much as possible now that the paper is accepted.
1) cost_bound variable problem fixed. Wavelet filtering removed. Probably the API of pywavelets changed and I prefer to remove the functionality and package dependence.
2) The smoothie is now optional (boolean argument)
3) Done
4) Included the functions. They seem to be working and are consistent with the functionality of VIP and the shapes module.
Cheers, C.
1/ in frame_center_radon() (calib/recentering.py):
2/ in contrast_curve() (phot/contr_curve.py):
3/ in _centroid_2dm_frame() (calib/recentering.py): I'd remove the condition "if np.allclose(miny, cy, atol=2) and np.allclose(minx, cx, atol=2):" which I find arbitrary to detect automatically if the data were taken with the AGPM or not! With some recent NACO+AGPM data, half of the frames pass the condition, the other half not. It is probably better to implement it in the same way as _centroid_2dg_frame()
4/ in var/shapes.py: I implemented the equivalent of get_circle and get_annulus, but with ellipses. I found it useful in the case of inclined disks. I let you decide whether to include them in vip or not:
def get_ellipse(array, a, b, PA, output_values=False, cy=None, cx=None, output_indices=False):
def get_ell_annulus(array, a, b, PA, width, output_values=False, output_indices=False, cy=None, cx=None):