qumas.MicrolensingAnalysis.Utils.extras module

calculate_line(X, Y, window_range_left, window_range_right)[source]
Parameters:
  • X ((N, M) array or list of arrays)

  • Y ((N, M) array or list of arrays)

  • window_range_left ((lo, hi))

  • window_range_right ((lo, hi))

Returns:

  • Y_wo ((N, M) ndarray) – Continuum-subtracted spectra per object.

  • CONT ((N, M) ndarray) – Fitted linear continuum evaluated over full X per object.

convert_none_to_nan(item)[source]