joshjchayes / TransitFit

Transit light curve fitting using nested sampling
GNU General Public License v3.0
4 stars 1 forks source link

Binning (plots) #7

Closed sourestdeeds closed 3 years ago

sourestdeeds commented 3 years ago
Plotting final curves
-1022356.0020723017 853588.8101815426 0 inf
Average points in each bin: nan
Expected RMS improvement from binning: nan
Exception raised while plotting:
division by zero
Traceback:
  File "/Users/sourestdeeds/miniforge3/lib/python3.8/site-packages/transitfit-2.1.6.dev0-py3.8.egg/transitfit/output_handler.py", line 255, in plot_final_light_curves
    self._plot_data(phase, flux, plot_errors[j], model_phase,
  File "/Users/sourestdeeds/miniforge3/lib/python3.8/site-packages/transitfit-2.1.6.dev0-py3.8.egg/transitfit/output_handler.py", line 988, in _plot_data
    binned_residuals_std = np.std(binned_residuals)
  File "<__array_function__ internals>", line 5, in std
  File "/Users/sourestdeeds/miniforge3/lib/python3.8/site-packages/numpy/core/fromnumeric.py", line 3560, in std
    return _methods._std(a, axis=axis, dtype=dtype, out=out, ddof=ddof,
  File "/Users/sourestdeeds/miniforge3/lib/python3.8/site-packages/numpy/core/_methods.py", line 261, in _std
    ret = _var(a, axis=axis, dtype=dtype, out=out, ddof=ddof,
  File "/Users/sourestdeeds/miniforge3/lib/python3.8/site-packages/numpy/core/_methods.py", line 221, in _var
    arrmean = um.true_divide(arrmean, div, out=arrmean, casting='unsafe',
-1022356.0020723017 853588.8101815426 0 inf
Average points in each bin: nan
Expected RMS improvement from binning: nan
Exception raised while plotting:
division by zero
Traceback:
  File "/Users/sourestdeeds/miniforge3/lib/python3.8/site-packages/transitfit-2.1.6.dev0-py3.8.egg/transitfit/output_handler.py", line 255, in plot_final_light_curves
    self._plot_data(phase, flux, plot_errors[j], model_phase,
  File "/Users/sourestdeeds/miniforge3/lib/python3.8/site-packages/transitfit-2.1.6.dev0-py3.8.egg/transitfit/output_handler.py", line 988, in _plot_data
    binned_residuals_std = np.std(binned_residuals)
  File "<__array_function__ internals>", line 5, in std
  File "/Users/sourestdeeds/miniforge3/lib/python3.8/site-packages/numpy/core/fromnumeric.py", line 3560, in std
    return _methods._std(a, axis=axis, dtype=dtype, out=out, ddof=ddof,
  File "/Users/sourestdeeds/miniforge3/lib/python3.8/site-packages/numpy/core/_methods.py", line 261, in _std
    ret = _var(a, axis=axis, dtype=dtype, out=out, ddof=ddof,
  File "/Users/sourestdeeds/miniforge3/lib/python3.8/site-packages/numpy/core/_methods.py", line 221, in _var
    arrmean = um.true_divide(arrmean, div, out=arrmean, casting='unsafe',
joshjchayes commented 3 years ago

Cool, this is solved. I made a mistake when converting minutes to phase.