SterlingYM / astroPIPS

A set of tools for photometric analysis. Determines the period of short-period variable stars.
https://pips.readthedocs.io/en/latest/
MIT License
7 stars 0 forks source link

get_period_multi() fails due to duplicate arguments #42

Open MrBudgens opened 3 years ago

MrBudgens commented 3 years ago

Calling get_period_multi() results in a TypeError reporting that the Periodogram object has been passed multiple instances of kwarg 'x'

Code to reproduce the problem:

import PIPS import numpy as np Npoints = 1000 noise = 0.01 time = np.sort(np.random.random(Npoints) 10) + 58000 mag = np.sin(timenp.pi) + 15 + np.random.normal(0, noise, size=Npoints) mag += np.sin(timenp.pi3.7) / 3 mag_err = np.ones(Npoints) * noise data = [time, mag, mag_err] star = PIPS.photdata(data) period, period_err, Z = star.get_period_multi(multiprocessing=False, N=2, Nterms=1, return_Z=True, debug=True)