Skip to content

LombScargle: Implement fit_mean by passing it to the new floating_mean in scipy implementation #17166

Closed

Description

@pllim

As suggested by @jakevdp in #17163 (comment)

It might be worth implementing fit_mean by passing it to the new floating_mean argument of the scipy method, i.e., remove this warning if a suitably new scipy version is installed:

if method == "scipy":
if kwds.pop("fit_mean"):
raise ValueError("scipy method does not support fit_mean=True")

Activity

  1. neutrinoceros commented on Oct 12, 2024

    @neutrinoceros
    Contributor

    I'm +1 on doing this, but for posterity: this will require scipy 1.15 or later, assuming the argument isn't renamed or removed in the meantime before the release (unlikely, but still possible), so I think we should wait until this feature lands in a stable version before we start relying on it.

  2. pllim commented on Nov 10, 2026

    @pllim
    MemberAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions