Skip to content

Commit

Permalink
Clean up trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
rosteen authored Dec 8, 2023
1 parent 6c5ab0c commit 98428f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions specutils/analysis/correlation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`).
Expand Down Expand Up @@ -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,

Check warning on line 94 in specutils/analysis/correlation.py

View check run for this annotation

Codecov / codecov/patch

specutils/analysis/correlation.py#L94

Added line #L94 was not covered by tests
(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")

Expand Down

0 comments on commit 98428f4

Please sign in to comment.