Skip to content

Implementation of scipy.integrate.simps #2629

Description

@Joshuaalbert

Are there plans to implement scipy.integrate.simps?
It is a pretty useful method that would easily gain from chunking (when integration is done down one axis of a multi-N array).

Activity

  1. mrocklin commented on Aug 26, 2017

    @mrocklin
    Member

    Is this something that you're interested in implementing @Joshuaalbert ?

  2. Joshuaalbert commented on Aug 27, 2017

    @Joshuaalbert
    Author
  3. mrocklin commented on Nov 1, 2017

    @mrocklin
    Member

    I apologize for the long delay here. http://dask.pydata.org/en/latest/develop.html

  4. GenevieveBuckley commented on Oct 12, 2021

    @GenevieveBuckley
    Contributor

    This issue has been open for a while, contributions are welcome from anyone who'd like to tackle it.

  5. mrinalsardar commented on May 21, 2022

    @mrinalsardar

    @GenevieveBuckley/ @mrocklin may I work on this please?
    Also maybe we should create a dask-scipy sort of repo?

  6. krokosik commented on Mar 1, 2023

    @krokosik
    Contributor

    @mrinalsardar @mrocklin @GenevieveBuckley What is the status of this issue? Can I pick it up?

  7. jrbourbeau commented on Mar 1, 2023

    @jrbourbeau
    Member

    Based on the content of the issue, it doesn't looks like there has been any progress. Feel free to work on this if you'd like @wkrasnicki, one doesn't need to ask permission to pick up an issue

  8. Raahim-Lone commented on Jun 13, 2025

    @Raahim-Lone

    Hi everyone, first-time contributor here! I’m tackling this issue right now and will open a draft PR soon. Any feedback is appreciated!

  9. Quantum0uasar commented on May 21, 2026

    @Quantum0uasar

    I'd love to implement this!

    Note: scipy.integrate.simps has been renamed to scipy.integrate.simpson in newer scipy versions. I'll implement dask.array.simpson that wraps the scipy implementation to work on chunked arrays via the "overlapping" (overlap/ghost) pattern.

    Approach:

    • Use dask.array.lib.stride_tricks and the overlap pattern to handle chunk boundaries correctly
    • Apply Simpson's rule across each chunk with appropriate boundary handling
    • Support the axis and dx/x parameters

    Would this be best added to dask/array/routines.py? Happy to start a draft PR!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    arraygood first issueClearly described and easy to accomplish. Good for beginners to the project.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions