From 98428f48c18c01f0cb875bee3666a6fa6d013173 Mon Sep 17 00:00:00 2001 From: Ricky O'Steen <39831871+rosteen@users.noreply.github.com> Date: Fri, 8 Dec 2023 11:32:00 -0500 Subject: [PATCH] Clean up trailing whitespace --- specutils/analysis/correlation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specutils/analysis/correlation.py b/specutils/analysis/correlation.py index 45ea54177..434fa9825 100644 --- a/specutils/analysis/correlation.py +++ b/specutils/analysis/correlation.py @@ -52,7 +52,7 @@ def template_correlate(observed_spectrum, template_spectrum, lag_units=_KMS, a sensible resampling). method: str If you choose "FFT", the correlation will be done through the use - of convolution and will be calculated faster (for small spectral + of convolution and will be calculated faster (for small spectral resolutions it is often correct), otherwise the correlation is determined directly from sums (the "direct" method in `~scipy.signal.correlate`). @@ -91,11 +91,11 @@ def template_correlate(observed_spectrum, template_spectrum, lag_units=_KMS, # Correlate if method.lower() == "fft": - corr = correlate(observed_log_spectrum.flux.value, + corr = correlate(observed_log_spectrum.flux.value, (template_log_spectrum.flux.value * normalization), method="fft") else: - corr = correlate(observed_log_spectrum.flux.value, + corr = correlate(observed_log_spectrum.flux.value, (template_log_spectrum.flux.value * normalization), method="direct")