Open MrBudgens opened 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)
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)