Fix warnings in timeseries.periodograms#8964
Conversation
|
While Jake's cython was easily readable, I'm not sure I grasp what's going on in the python/cython/c layers for BLS, so one deprecation warning remains in there. @mhvk - could you please advise/push a fix to this branch? |
|
|
||
| t, y, dy = np.broadcast_arrays(t, y, dy) | ||
|
|
||
| t.flags.writeable = True |
There was a problem hiding this comment.
I'm not sure it is right to just make the arrays writable - if any values are broadcast, something like y -= ... could very easily do the wrong thing. Will check.
|
Looking into this more, this really seems an upstream issue, in numpy and/or cython; see numpy/numpy#13929 |
f48bbfe to
a6231dc
Compare
pllim
left a comment
There was a problem hiding this comment.
Looks uncontroversial enough. Thanks!
|
I am afraid straight backport to 2.x might not be possible due to the refactoring though. Are you sure you want to milestone this to 2.x? Aside from the milestone, I think this is good to merge. |
|
Things just got moved around so git should recognize it, but I will remilestone if it turns out to be problematic. |
|
Affected file has been added in 3.0, so this cannot be backported to LTS. |
Fix warnings in timeseries.periodograms
This is part of efforts of #7928,
as well as to fix numpy 1.17 compatibility as noted in #8935