Skip to content

TST: Tests failed with Numpy DeprecationWarning about np.broadcast_arrays #8935

Closed

Description

@pllim

Example log from master from the numpy-dev job: https://api.travis-ci.org/v3/job/552167685/log.txt

DeprecationWarning: Numpy has detected that you (may be) writing to an array with
overlapping memory from np.broadcast_arrays. If this is intentional
set the WRITEABLE flag True or make a copy immediately before writing.

215 failures total

xref numpy/numpy#12609

Activity

  1. mhvk commented on Jun 29, 2019

    @mhvk
    Contributor

    @pllim - this warning was meant to show only when we are actually trying to write to a broadcast array - which we should never do. So, I think we should only look at the actual cases where the warning is given.

    From the log file, it looks like there is only a single problem somewhere in the LombScargle implementation, which we probably can fix by looking carefully at that code.

  2. pllim commented on Jun 29, 2019

    @pllim
    MemberAuthor

    There are also some from BLS too. Unfortunately, I won't have time to investigate further for now. Someone familiar with the timeseries stuff feel free to take a stab. 🙏

  3. bsipocz commented on Jun 29, 2019

    @bsipocz
    Member

    I'll try to find some time looking into those this weekend.

  4. mhvk commented on Jul 7, 2019

    @mhvk
    Contributor

    Looking into this more, I've concluded it is really an upstream issue: numpy/numpy#13929

  5. mhvk commented on Jul 7, 2019

    @mhvk
    Contributor

    See #8965 for an alternative solution that explicitly marks arrays as read-only

  6. pllim commented on Jul 25, 2019

    @pllim
    MemberAuthor

    Fixed, thanks to @mhvk !

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