ashleychontos / pySYD

automated measurements of global asteroseismic parameters
https://pysyd.readthedocs.io
MIT License
25 stars 13 forks source link

Got an value error #47

Closed diyiliaoya closed 1 year ago

diyiliaoya commented 1 year ago

Hi ashleychontos,

I got an value error when use "pysyd run -- star 302372658": self.freq_cs = np.array(self.frequency[self.params['oversampling_factor']-1::self.params['oversampling_factor']]) ValueError: slice step cannot be zero

I got the LC.txt and PS.txt of TIC302372658 with lightkurve. But I got the upper error when I use pysyd to run it. So how should I do?

danxhuber commented 1 year ago

@ashleychontos this is will probably be fixed by implementing #46

diyiliaoya commented 1 year ago

@ashleychontos this is will probably be fixed by implementing #46

Hi ashleychontos,

Thanks for your reply! I modified the source code according to the #46 and it worked.

ashleychontos commented 1 year ago

The new version of pySYD has this fixed, along with some other minor bugs:

pip install --upgrade pysyd==6.10.5