astrobase.periodbase package

This package contains various useful tools for finding periods in astronomical time-series observations.

Some utility functions are present in:

This module

This top-level module hoists all period-finder functions up into the astrobase.periodbase namespace, so you can do:

from astrobase import periodbase
periodbase.<name of period-finder function>
astrobase.periodbase.use_astropy_bls()[source]

This function can be used to switch from the default astrobase BLS implementation (kbls) to the Astropy version (abls).

If this is called, subsequent calls to the BLS periodbase functions will use the Astropy versions instead:

from astrobase import periodbase

# initially points to periodbase.kbls.bls_serial_pfind
periodbase.bls_serial_pfind(...)

# initially points to periodbase.kbls.bls_parallel_pfind
periodbase.bls_parallel_pfind(...)

periodbase.use_astropy_bls()

# now points to periodbase.abls.bls_serial_pfind
periodbase.bls_serial_pfind(...)

# now points to periodbase.abls.bls_parallel_pfind
periodbase.bls_parallel_pfind(...)