sczesla / PyAstronomy

A collection of astronomy-related routines in Python
152 stars 35 forks source link

Update gls.py #54

Closed mirofedurco closed 2 years ago

mirofedurco commented 2 years ago

After some digging in the code, I realized that this exception is probably misplaced and this fix enables to use fast method properly. The old placement of the exception forced the user to use freq parameter which will cause invalid results, since the fast method relies on the default frequency spacing.

sczesla commented 2 years ago

I think you are right. Thanks for correcting it!