ENH: raise error when nsmooth_snr < 2
this exception was raised in the `normalize_snr` function, but it would make more sense to abort the algorithm *before* the actual calculations take place.
@@ -233,6 +233,8 @@ def andromeda(cube, oversampling_fact, angles, psf,
positivity = False
# also note the comment in andromeda.pro:691:
# ;If post-normalisation, set to 0, else 1
+ elif nsmooth_snr < 2:
+ raise ValueError("`nsmooth_snr` must be >= 2")
#===== initialize output
