A scientist compares a Lomb–Scargle peak labeled 6.28 Hz with the corrected 1 Hz peak for the same signal.

The Lomb–Scargle Peak Looks Plausible. Is Its Frequency in Hertz?

Fri, Dec 4, 2026

A normalized Lomb–Scargle peak near one can be numerically excellent and still be attached to the wrong physical frequency. In the fixture below, the application presents a seven-point grid as hertz, including 6.283185307179586. If those numbers are passed unchanged to scipy.signal.lombscargle, SciPy interprets them as angular frequencies, not cycles per second. The row displayed as 6.283185307179586 Hz therefore evaluates an angular frequency of 2π rad/s, which is physically 1 Hz. SciPy 1.17.0 explicitly documents freqs as angular frequencies and gives rad/s as the example when time is measured in seconds.

That distinction decides the release action. If the stored observations, grid and estimator inputs show that only the outward label was wrong, the historical physical label can be repaired with provenance. If the application actually evaluated the wrong frequencies because its Hz-to-angular-frequency adapter was missing, regenerate the fit. If the timestamp unit or numerical estimator inputs cannot be reconstructed, withhold the physical label rather than infer it from a persuasive peak height.

I reproduced the SciPy and NumPy portions offline on Python 3.13.5, NumPy 2.3.5 and SciPy 1.17.0, using float64. The original run used Python 3.12.16 with the same NumPy and SciPy versions. Astropy was unavailable in the offline environment, so the Astropy comparison gives the documented expectation.

Decide what a peak labeled Hz commits you to

A report that prints 1.0 Hz is making a physical assertion, not merely displaying an array coordinate. One hertz means one cycle per SI second. A sinusoid at physical frequency f in hertz has period

T = 1/f

and angular frequency

ω = 2πf.

Thus 1 Hz, 1 s⁻¹ when the quantity is cycles per second, and 2π rad/s describe the same oscillation. They are not interchangeable numeric arguments.

That is the interoperability hazard here. SciPy 1.17.0 documents its model as a cos(ωx) + b sin(ωx) + c and defines freqs as angular frequencies; for times in seconds, its example unit is rad/s. It also documents floating_mean=True as fitting an offset independently at each frequency. Astropy's stable Lomb–Scargle guide states the opposite public convention for the frequency axis: its frequencies are oscillation frequencies, meaning cycles per unit time, and its model contains 2πft.

For a release review, write down four fields before looking at the largest score:

Contract field

This fixture

Observation-time unit

seconds

UI/report grid

cycles per second, displayed as Hz

SciPy estimator input

radians per second

Published peak

cycles per second, Hz

The adapter is therefore part of the scientific meaning:

omega_rad_s = 2.0 np.pi f_hz

A useful review habit is the same one used when checking statistical assumptions in a data analysis: make the claim and its assumptions explicit before accepting a computed result. Here the relevant assumption is dimensional rather than inferential. No significance test is needed to establish whether a number labeled hertz actually reached an angular-frequency API as radians per second.

Application acceptance policy: authorize an Hz label only when the review record connects the displayed f to the estimator phase 2πft, with the timestamp unit known. A large ordinate alone does not satisfy that contract.

Plant a one-hertz signal at uneven timestamps

The fixture deliberately avoids a regular time lattice. For integer i = 0, …, 79,

jitter_s = [0, 0.011, −0.007, 0.016, −0.004]
t_s[i] = 0.137 × i + jitter_s[i mod 5]

in seconds, and

y[i] = 1.7 + 2 cos(2π × t_s[i]) + 0.4 sin(2π × t_s[i]).

This is deterministic, noiseless and exactly representable as the intended three-column floating-mean model up to normal floating-point evaluation. No observing campaign, forecasting question or detection-significance interpretation is attached to it.

The first validation is structural, not spectral. Confirm finite arrays, one y for every timestamp, strictly increasing observation times and unequal gaps. In my offline reproduction, all arrays were finite, all 80 observation rows were paired, np.diff(t_s) > 0 held throughout, and the floating-point gap values were nonconstant. The observed minimum and maximum gaps were approximately 0.117 s and 0.160 s.

import numpy as np

i = np.arange(80, dtype=np.int64)
jitter_s = np.array(
    [0.0, 0.011, -0.007, 0.016, -0.004],
    dtype=np.float64,
)

t_s = (0.137 * i + jitter_s[i % 5]).astype(np.float64)

y = (
    1.7
    + 2.0 np.cos(2.0 np.pi t_s)
    + 0.4 np.sin(2.0 np.pi t_s)
).astype(np.float64)

assert t_s.dtype == np.float64
assert y.dtype == np.float64
assert t_s.shape == y.shape == (80,)
assert np.all(np.isfinite(t_s))
assert np.all(np.isfinite(y))
assert np.all(np.diff(t_s) > 0.0)

gaps_s = np.diff(t_s)
assert not np.all(gaps_s == gaps_s[0])

The offset 1.7 matters. SciPy's documentation says that an unknown baseline is not fitted unless floating_mean=True, and recommends that mode when an offset may be present. The generalized formulation is also consistent with Zechmeister and Kürster's treatment of a sine fit with an added offset c.

Record the independent physical expectation

The expected physical frequency comes from construction, before any periodogram is run. Both harmonic terms use the phase 2π × t_s. When t_s is measured in seconds, the phase advances 2π radians per second, which is one cycle per second: 1 Hz.

Save that as fixture metadata rather than deriving the expected answer from the estimator under test:

fixture_id: uneven_one_hz_v1
time_unit: second
expected_frequency_hz: 1.0
sample_count: 80
signal:
  offset: 1.7
  cosine_amplitude: 2.0
  sine_amplitude: 0.4
  phase_argument: 2*pi*1_Hz*t_s
dtype: float64

This distinction matters operationally. The expected value is independent evidence; the periodogram is the system under review. The generalized Lomb–Scargle paper describes the method as least-squares sine fitting, including an offset in the generalized formulation, which is why a direct design-matrix residual later provides a useful second implementation rather than merely another peak label.

Preserve all three coefficients (offset, cosine and sine) through every replay. Changing the signal between the failing and passing cases would weaken the comparison by introducing an additional variable.

Freeze the grid and software environment

Use this exact displayed grid:

f_hz = np.array(
    [0.5, 1.0, 1.6, 2.0, 4.0, 2.0 * np.pi, 7.5],
    dtype=np.float64,
)

In words, the seven-candidate frequency array is [0.5,1.0,1.6,2.0,4.0,2π,7.5]. The 2π row is intentionally present as a diagnostic sentinel. Its displayed value is numerically 6.283185307179586.

Freeze candidate order as well as values. Selection is simply:

winner_index = int(np.argmax(power))

There is no peak-prominence policy, neighborhood filter or frequency interpolation in this fixture.

The original run used Python 3.12.16, NumPy 2.3.5 and SciPy 1.17.0. My independent offline reproduction used:

Python 3.13.5
NumPy 2.3.5
SciPy 1.17.0
CPU float64

SciPy 1.17.0 says real floating inputs are converted to float64 internally, but the fixture explicitly constructs float64 arrays so the boundary is visible in the source.

Use explicit model and normalization arguments:

floating_mean=True
normalize=True

SciPy 1.17.0 documents normalize=True as normalized power and floating_mean=True as determining an offset independently at each frequency. Explicit keywords also make the record resistant to ambiguity from positional arguments.

A reasonable fixture-level comparison tolerance is:

POWER_ATOL = 1e-14
RSS_ATOL = 1e-10

RSS_ATOL is intentionally much larger than the actually observed one-hertz residual, which was about 1.05e-28, yet tiny relative to the signal energy sum(y*y) ≈ 395.933. The tolerance is a test policy, not an uncertainty estimate.

Freezing a grid is conceptually similar to preserving the meaning of time-window labels in pandas: a numeric result is interpretable only when the coordinate contract that produced it remains attached.

Run the frequency-grid mistake exactly once

The failing adapter passes the Hz grid directly to SciPy:

from scipy.signal import lombscargle

power_wrong = lombscargle(
    t_s,
    y,
    f_hz,
    floating_mean=True,
    normalize=True,
)

SciPy does not know that the variable was named f_hz. Its documented contract says the third argument contains angular frequencies. Consequently each numerical grid value g is interpreted as ω = g rad/s, corresponding to a physical frequency

f_physical = g/(2π) Hz.

The offline reproduction selected index 5, the displayed row 6.283185307179586, with normalized power 0.9999999999999991. The original run with the unconverted grid also selected the row labeled 6.283185307179586, with its winning normalized score within 2 × 10⁻¹⁵ of one.

This does not show a genuine 6.283185307179586 Hz tone. It shows that the estimator received

ω = 6.283185307179586 rad/s = 2π rad/s,

which is exactly 1 cycle/s.

The failure is particularly dangerous because the fit is excellent. A review process that checks only “does the periodogram have a strong, sharp maximum?” can approve the wrong physical label.

This is a coordinate-contract problem rather than an FFT reconstruction issue. The earlier example about retaining sample count in a NumPy FFT roundtrip is useful only as an analogy: plausible numerical output does not establish that an implicit convention matched the application contract. Here the recorded irregular timestamps are never resampled and no inverse transform is involved.

Follow one candidate from screen label to model

Take the disputed display row:

UI label:       6.283185307179586 Hz
numeric value:  6.283185307179586

The faulty adapter forwards that number unchanged:

SciPy freqs value: 6.283185307179586

SciPy interprets it as angular frequency. At t = 1 second, the model phase is

ωt = 6.283185307179586 rad/s × 1 s = 2π rad.

That is one complete cycle. The estimator has therefore evaluated a 1 Hz physical model.

The factor direction is worth writing explicitly:

ω = 2πf

for Hz to rad/s, while

f = ω/(2π)

for rad/s back to Hz.

A common review mistake is to remember “there is a 2π” but apply it in the wrong direction. A boundary function should therefore encode the units in its identifiers:

def hz_to_rad_per_second(f_hz: np.ndarray) -> np.ndarray:
    return 2.0 np.pi np.asarray(f_hz, dtype=np.float64)

Do not name the converted array frequency and leave its physical meaning implicit.

Apply the conversion at the SciPy boundary

The corrected call preserves the reporting grid in Hz and transforms only the estimator-facing array:

omega_rad_s = 2.0 np.pi f_hz

power_ok = lombscargle(
    t_s,
    y,
    omega_rad_s,
    floating_mean=True,
    normalize=True,
)

In the reproduction, np.argmax(power_ok) returned the index of the row labeled 1.0, with normalized power 0.9999999999999998. The original run likewise selected 1.0 Hz, and its winning score was within 2 × 10⁻¹⁵ of one.

That is the passing control. The data, grid order, signal and mean model did not change. Only the Hz-to-angular-frequency adapter changed.

Once the winning array index is known, convert by metadata, not by guessing from the SciPy input:

k = int(np.argmax(power_ok))
selected_hz = float(f_hz[k])
selected_omega_rad_s = float(omega_rad_s[k])
period_s = 1.0 / selected_hz

assert selected_hz == 1.0
assert np.isclose(selected_omega_rad_s, 2.0 * np.pi)
assert period_s == 1.0

The reportable physical result for this fixture is therefore:

frequency: 1.0 Hz
period:    1.0 s
SciPy input at selected row:
           6.283185307179586 rad/s

The two numbers 1.0 and 6.283185307179586 must remain visible together in audit output. Hiding the angular-frequency argument makes it easier for a later maintainer to reintroduce the same error.

The release decision is now narrower: the corrected adapter behaves consistently with SciPy's documented angular-frequency convention. That establishes an interface mapping for this fixture; it is not a claim about signal significance or grid adequacy for arbitrary observations.

Check the winner independently by fitting three columns

A second implementation should work in the physical unit named in the report, not repeat SciPy's adapter.

For each candidate f in Hz, construct the design matrix A(f) one row at a time.

Row j of A(f) = [1, cos(2π f t_j), sin(2π f t_j)], for j = 1, …, N.

Fit the coefficient vector β by least squares.

Minimize ‖y − A(f)β‖₂ over β.

NumPy 2.3 documents numpy.linalg.lstsq(a, b, rcond=None) as returning a least-squares solution and the matrix rank; the solution minimizes the Euclidean norm when the system is not exactly square/full-rank. Although lstsq can also return a residual array, compute the fixture residual directly from the prediction so that the review formula is identical for every rank case:

def physical_frequency_fit(t_s, y, f_hz):
    A = np.column_stack(
        [
            np.ones_like(t_s),
            np.cos(2.0 np.pi f_hz t_s),
            np.sin(2.0 np.pi f_hz t_s),
        ]
    )
    beta, , rank, singularvalues = np.linalg.lstsq(
        A,
        y,
        rcond=None,
    )
    prediction = A @ beta
    rss = float(np.sum((y - prediction) ** 2))
    return beta, int(rank), rss, singular_values

Zechmeister and Kürster derive the generalized periodogram from a full sine-wave least-squares fit that includes an offset, so this three-column check matches the physical model relevant to the fixture.

In my reproduction all seven design matrices had rank 3. The minimum residual occurred at 1.0 Hz:

beta ≈ [1.700000000000001, 2.0, 0.4]
RSS  ≈ 1.05355e-28
rank = 3

That residual is effectively zero for this deterministic float64 construction. As a release tolerance, 1e-10 is conservative relative to both this residual and the observed signal energy.

Audit one disputed candidate in physical units

The independent check also resolves the most misleading pair.

At 1 Hz, the model columns contain cos(2π*t_s) and sin(2π*t_s), exactly the basis used to construct y. The observed residual was about 1.05e-28.

At 2π Hz, interpreted genuinely as cycles per second, the model uses

cos(2π × (2π) × t_s)

and the corresponding sine term. That is not the planted tone. Its reproduced residual was approximately 39.50263, despite the faulty SciPy call producing near-unit power at the numerical row 2π.

That contrast is the audit's central evidence:

Candidate interpreted physically

Direct-fit RSS

1.0 Hz

1.05355e-28

6.283185307179586 Hz

39.5026299347

The frequency-selection question and coefficient-estimation question remain separate. argmin(RSS) selects the best candidate on this declared physical grid; the recovered coefficients then check that the selected candidate reproduces the planted model.

Repeat the fit with timestamps in milliseconds

A correct physical mapping should survive a change in the unit used to represent time.

Convert the observation coordinate only:

t_ms = 1000.0 * t_s

The same physical angular frequency expressed per millisecond is

ω_rad_ms = (2π × f_Hz)/1000.

Run:

omega_rad_ms = 2.0 np.pi f_hz / 1000.0

power_ms = lombscargle(
    t_ms,
    y,
    omega_rad_ms,
    floating_mean=True,
    normalize=True,
)

My reproduction again selected 1.0 Hz, with winning normalized power 0.9999999999999993. The maximum absolute difference between the corrected seconds and milliseconds power vectors was

4.440892098500626e-16

which is comfortably below the declared POWER_ATOL = 1e-14.

The original run with the correctly converted millisecond grid also selected 1.0 Hz and had a winning normalized score within 2 × 10⁻¹⁵ of one.

The physical reason is simple. The argument of cosine and sine is dimensionless. Rescaling the time coordinate by 1000 while dividing its inverse-time angular frequency by 1000 preserves

ω_s × t_s = ω_ms × t_ms.

The milliseconds replay is therefore a strong unit test for the adapter. It is not a benchmark of Lomb–Scargle estimators and it does not say anything about robustness to measurement noise.

Check the conversion before comparing the curves

Do not make the estimator the first place where this invariant is tested.

For example:

for idx in (0, 37):
    phase_s = (
        2.0 np.pi 1.0
        t_s[idx]
    )
    phase_ms = (
        2.0 np.pi 1.0 / 1000.0
        t_ms[idx]
    )
    assert np.isclose(
        phase_s,
        phase_ms,
        rtol=0.0,
        atol=1e-14,
    )

For observation 37 in my run,

t_s  = 5.062000000000001 s
t_ms = 5062.000000000001 ms

phase from seconds      = 31.805484024943073
phase from milliseconds = 31.805484024943073

At observation zero both phases are zero. Across the full seven-frequency grid and all observations, the largest reproduced absolute discrepancy between the two phase matrices was about 5.68e-14, arising from ordinary binary floating-point operations at larger phase values.

This phase check localizes failures. If it fails, the problem is in unit conversion before Lomb–Scargle runs. If phase agrees but power does not within the chosen tolerance, investigate the estimator call, array state or environment separately.

Pass the same physical grid to Astropy

Astropy exposes the complementary public convention. Its Lomb–Scargle guide states that frequencies are not angular frequencies but oscillation frequencies (cycles per unit time) and writes its sinusoidal model with 2πft. The Astropy LombScargle API also documents fit_mean=True and normalization='standard'; fit_mean=True includes a constant offset in the model.

A unit-aware comparison is therefore naturally written as:

import astropy
import astropy.units as u
from astropy.timeseries import LombScargle

print(astropy.__version__)

t_quantity = t_s u.s
f_quantity = f_hz u.Hz

ls = LombScargle(
    t_quantity,
    y,
    fit_mean=True,
    center_data=True,
    normalization="standard",
)

power_astropy = ls.power(f_quantity)

winner = int(np.argmax(power_astropy))
print(f_quantity[winner])
print(power_astropy[winner])

The current stable documentation retrieved on 4 December 2026 identifies itself as Astropy 8.0.3. That is a documentation version, not an installed-runtime version in my reproduction environment.

Execution status. Astropy was unavailable in the offline runtime, which lacked package access. No Astropy power or installed version was observed.

Document-based expectation: because the fixture physically contains 1 cycle/s and Astropy's documented input frequency convention is cycles per unit time, the 1.0 * u.Hz candidate is expected to be the best-fitting row. Run the code above in the release environment before entering that outcome in the review record.

Do not require SciPy and Astropy ordinates to match bit-for-bit merely because both use a “standard” or normalized form. First reconcile model configuration, weighting, mean treatment and normalization definitions. The cross-library acceptance check here is the winning physical frequency, not an estimator benchmark.

Read the competing peaks on this grid

The complete grid makes the defect easier to diagnose than a single reported maximum.

The following values are from my offline Python 3.13.5 / NumPy 2.3.5 / SciPy 1.17.0 reproduction:

Display row, Hz

Physical Hz actually tested by faulty SciPy call

Wrong-call power

Corrected power

Direct physical-fit RSS

0.5

0.0795774715

0.0002263003

0.0043277676

165.5748180

1.0

0.1591549431

0.0007273911

1.0000000000

1.05355e-28

1.6

0.2546479089

0.0005520639

0.0033718382

165.7337838

2.0

0.3183098862

0.0020046437

0.0001594706

166.2679828

4.0

0.6366197724

0.0000382136

0.0005486694

166.2032612

6.283185307179586

1.0

1.0000000000

0.7624537824

39.50262993

7.5

1.1936620732

0.0032289324

0.0005719300

166.1993931

Rounded display values conceal tiny floating-point differences: the wrong-call winner was 0.9999999999999991; the corrected winner was 0.9999999999999998.

The sentinel row makes the error discriminating. Under the bad adapter, the row whose number is 2π lands exactly on the planted one-hertz physical model. Under the correct adapter, 1.0 lands on that model.

Do not add peak filters to this test. np.argmax is enough. A separate discussion of how SciPy filters competing peaks concerns selection-policy ordering; introducing such logic here would obscure the unit boundary being audited.

Remove the planted candidate as a negative control

Now remove the 1.0 Hz row from the correct physical grid:

mask = f_hz != 1.0
f_without_1 = f_hz[mask]

power_without_1 = lombscargle(
    t_s,
    y,
    2.0 np.pi f_without_1,
    floating_mean=True,
    normalize=True,
)

In my reproduction, the corrected-grid winner became 6.283185307179586 Hz, with normalized power approximately 0.7624537824. The independent physical least-squares audit selected the same remaining candidate, with RSS about 39.50263.

This is a meaningful negative control because the known physical answer is absent. The algorithm must still return some maximum from the candidates supplied. Its winner does not thereby become a validated reconstruction of the planted tone.

Accordingly:

assert 1.0 not in f_without_1
assert f_without_1[np.argmax(power_without_1)] == 2.0 * np.pi
assert np.max(power_without_1) < 0.9

The numerical threshold in the last assertion is fixture-specific. Its purpose is to detect accidental reintroduction of the exact planted row, not to define general signal significance.

Build the results table a reviewer can reproduce

The review artifact should contain enough information to distinguish three things that are easy to collapse in prose: the display coordinate, the numeric estimator argument and the physical frequency represented by that argument.

The following tables pair each estimator input with its fit result and release decision.

Estimator inputs

Run

Time unit

Display winner

SciPy winning input

Input unit

Faulty adapter

s

6.283185307179586 Hz

6.283185307179586

rad/s

Correct adapter

s

1.0 Hz

6.283185307179586

rad/s

Correct adapter

ms

1.0 Hz

0.006283185307179586

rad/ms

Negative control

s

6.283185307179586 Hz

39.47841760435743

rad/s

Astropy comparison

s

not executed here

physical grid in Hz

cycles/s

Fit results and release decisions

Run

Time unit

Mean policy

Winning power

Physical-fit RSS at displayed winner

Decision

Faulty adapter

s

floating

0.9999999999999991

39.50263

fail Hz label

Correct adapter

s

floating

0.9999999999999998

1.05e-28

pass

Correct adapter

ms

floating

0.9999999999999993

same physical model

pass

Negative control

s

floating

0.7624537824

39.50263

no planted-grid confirmation

Astropy comparison

s

fitted mean

not reported

n/a

run before sign-off

NumPy 2.3's lstsq interface returns rank as part of the solution record, which lets the reviewer verify that each three-column fixture design matrix remained full rank. All seven candidate matrices had reproduced rank 3.

The distinction between fit value and interpretation is also why interpreting the scale of a fitted covariance is a separate review problem. This article does not infer uncertainty from the tiny residual and does not use covariance to authorize the frequency label.

A runnable reproduction command can be as simple as:

python lomb_units_fixture.py

with the script recording versions before the assertions:

import sys
import numpy as np
import scipy

print("Python", sys.version.split()[0])
print("NumPy", np.__version__)
print("SciPy", scipy.__version__)

Core pass/fail assertions should include:

assert f_hz[np.argmax(power_wrong)] == 2.0 * np.pi
assert f_hz[np.argmax(power_ok)] == 1.0
assert f_hz[np.argmax(power_ms)] == 1.0

assert np.allclose(
    power_ok,
    power_ms,
    rtol=0.0,
    atol=POWER_ATOL,
)

beta_1, rank_1, rss_1, = physicalfrequency_fit(
    t_s, y, 1.0
)
assert rank_1 == 3
assert rss_1 < RSS_ATOL
assert np.allclose(
    beta_1,
    [1.7, 2.0, 0.4],
    rtol=0.0,
    atol=1e-12,
)

Repair existing exports with traceable provenance

Historic outputs require one question before bulk correction: was the defect only in the label, or was the estimator called with the wrong numeric grid?

Those cases are not equivalent.

Suppose an archive contains a stored SciPy winning argument of 6.283185307179586 rad/s, the timestamps are known to be seconds, and the report printed the same number as 6.283185307179586 Hz. If the complete estimator record confirms that the fitted model was truly evaluated at 2π rad/s, the physical frequency represented by that fit is 1 Hz. The fit itself need not be recomputed merely to divide a correctly recorded angular coordinate by 2π. The defect can be classified as outward labeling or conversion after fitting.

By contrast, suppose an application intended to evaluate a physical grid [0.5, 1.0, ...] Hz but passed those numbers directly to SciPy. Then it evaluated [0.5, 1.0, ...] rad/s, not the intended physical grid. Changing labels afterward cannot create the missing fits. Regenerate the periodogram with

omega = 2 np.pi f_hz

and rerun all downstream outputs derived from the selected row.

If the timestamp unit is unknown, neither repair is defensible. An angular argument has meaning only in relation to the inverse unit of the time coordinate. 6.283... paired with seconds and the same number paired with milliseconds describe radically different phases.

Use the archived record to decide how to repair the export.

Archived peak review

Yes

No

Is the timestamp unit known?

Check whether the estimator grid was retained.

Withhold the physical label.

Was the estimator grid retained?

Inspect the grid at the SciPy boundary.

Withhold the physical label.

Was the grid already angular at the SciPy boundary?

Check whether only the outward label was wrong.

Regenerate the affected product and run the release checks.

Was only the outward label wrong?

Correct the label with provenance and run the release checks.

Regenerate the affected product and run the release checks.

After replaying the fixture, residual and unit-scale checks, does the release gate pass?

Resume publication.

Withhold the physical label.

Do not overwrite the old product invisibly. Preserve its grid, estimator call signature, timestamp-unit declaration, software environment and published label. The objective is to let a future reviewer determine whether consumers saw a mislabeled physical coordinate or a result produced from the wrong fitted models.

Replay one archived result before bulk correction

Choose one representative archived product before changing an entire historical series.

The replay record should contain:

review_id:
archive_product_id:
owner:
source_timestamp_unit:
saved_display_grid:
saved_estimator_grid:
estimator_grid_unit:
SciPy_version:
floating_mean:
normalize:
old_displayed_peak:
regenerated_peak:
independent_RSS:
seconds_ms_replay:
decision:
rollback_target:
reviewer:
review_date:

The owner should be a named role or accountable team, not “data science” in the abstract. For example, the analytical-software owner can own the adapter and reproducible build; the scientific-result owner can own whether the corrected coordinate supports publication language.

Define the rollback target before editing exports. It might be the last artifact revision whose mapping from display frequency to estimator argument is independently verified. A publication restart criterion can then be stated mechanically: known-tone fixture passes, independent physical least-squares minimum is at 1 Hz, seconds/milliseconds powers agree within tolerance, and an archived replay reproduces the corrected unit contract.

This is the point where historic provenance separates recoverable labels from irrecoverable ambiguity.

Set the acceptance criteria for a release

The release gate should distinguish documented library behavior, observations from this fixture and application policy.

Documented behavior: SciPy 1.17.0 accepts angular frequencies and supports a floating fitted offset; Astropy's public Lomb–Scargle frequency convention is cycles per unit time; NumPy lstsq solves the stated linear least-squares problem and reports rank.

Fixture observations: in the current reproduction, the faulty SciPy call selected the row numerically equal to 2π; the corrected seconds and milliseconds calls selected 1 Hz; the direct 1 Hz residual was about 1.05e-28; the seconds-versus-milliseconds power discrepancy was at most 4.44e-16.

Application acceptance policy: a physical frequency label is published only when the unit contract and validation suite support it.

Review condition

Release action

Correct Hz→rad/s adapter; 1 Hz fixture passes; independent residual passes; time-unit replay passes

authorize Hz label

Hz numbers passed unchanged as SciPy angular frequencies

repair adapter and regenerate affected fits

Timestamp unit unknown

withhold physical frequency label

Intended estimator grid cannot be reconstructed

quarantine physical outputs

Grid omits the known 1 Hz reference in the validation fixture

fail validation; do not infer correctness from another winning row

Astropy comparison unavailable

do not claim cross-library execution; SciPy release may proceed only if Astropy is not itself a required acceptance gate

Historic estimator input correct but outward conversion provably wrong

correct label with retained provenance rather than automatically refitting

For this pipeline, require all three primary controls before release:

1.     the known-tone SciPy run selects 1.0 Hz after explicit conversion;

2.     the independent physical design-matrix fit has its minimum residual at 1.0 Hz, with rank 3;

3.     seconds and milliseconds representations produce equivalent phases and periodogram powers within declared float64 tolerances.

This gate does not require a statistical-significance threshold because significance is outside the unit-validation question.

Document what the fixture cannot establish

This fixture answers a narrow but important question: does the software map a reported physical frequency in hertz to the numerical frequency convention expected by the estimator?

It does not establish that an arbitrary real-data peak is scientifically meaningful.

Uneven sampling can produce complicated relationships among candidate frequencies. The SciPy documentation itself notes that simple regularly sampled “Nyquist frequency” intuition is not generally applicable to uneven sampling.

Likewise, the noiseless fixture says nothing about how noise affects a peak, whether a candidate is statistically significant or whether a chosen search grid is sufficiently dense for a real application. Those questions require separate requirements, simulations or scientific analysis.

A grid can also be inadequate even when every unit conversion is correct. The negative control demonstrates that fact: once 1 Hz is removed, argmax still returns a row. A winner means “largest among the values evaluated,” not “the underlying physical truth is represented exactly.”

No biological interpretation belongs in this gate. No observing-campaign conclusions belong here. No forecast should be generated from it. No ranking of Lomb–Scargle implementations is justified by the fixture.

The strongest supported release statement is narrower:

For the pinned noiseless fixture, using seconds and a physical candidate grid expressed in Hz, the SciPy 1.17.0 boundary must receive 2π*f_hz in rad/s. The corrected implementation selects the planted 1 Hz row, agrees with an independent three-column least-squares residual check, and remains numerically consistent when time is represented in milliseconds with the inverse-time conversion changed correspondingly.

That is enough to authorize the unit mapping, not every scientific inference that might later be attached to a periodogram.

Practice defending a scientific result in review

The useful professional skill in this example is not memorizing that SciPy needs a factor of 2π. It is learning to defend a numerical result through a chain of inspectable evidence: declared units, an independent physical expectation, explicit API conventions, a failing fixture, a passing control, a second implementation, a unit-rescaling invariant and a provenance record.

The four primary references support different parts of that chain. SciPy 1.17.0 defines the estimator-facing angular-frequency contract and floating mean. Astropy documents the contrasting cycles-per-unit-time public convention. Zechmeister and Kürster's 2009 paper, posted 16 January 2009, develops the generalized least-squares sinusoid with an offset that motivates the residual audit. NumPy 2.3 documents the lstsq solution and rank used by that independent check. All four references were consulted on 4 December 2026.

For readers who want broader structured practice in Python and statistical modeling, Refonte Learning's Data Science Program currently lists Python Data Science, statistical modelling and an introduction to statistical concepts among its curriculum areas; the page describes a three-month program at 12–14 hours per week and presents educational mentoring and a virtual-internship opportunity. Those program details are relevant as general foundations, not evidence that the program teaches SciPy, Astropy or a Lomb–Scargle-specific laboratory.

The release owner should sign off only on what the record demonstrates: publish the peak in hertz when the physical grid is converted to angular frequency at the SciPy boundary and the fixture, independent residual audit and unit-rescaling control pass; repair and regenerate when the estimator received unconverted Hz numbers; withhold the physical label when the timestamp unit or estimator grid cannot be reconstructed.