def townsend_lombscargle_wrapper(task):
'''
This wraps the function above for use with mp.Pool.
task[0] = times
task[1] = mags
task[2] = omega
'''
try:
return townsend_lombscargle_value(*task)
# if the LSP calculation fails for this omega, return a npnan
except Exception as e:
return npnan
评论列表
文章目录