Re: [Numpy-discussion] Unreliable crash when converting using numpy.asarray via C buffer interface

2021-03-29 Thread Friedrich Romstedt
Hi Matti, Sebastian and Lev, Am Mo., 15. Feb. 2021 um 18:50 Uhr schrieb Lev Maximov : > > Try adding > view->suboffsets = NULL; > view->internal = NULL; > to Image_getbuffer finally I got it working easily using Lev's pointer cited above. I didn't follow the valgrind approach furthermore

Re: [Numpy-discussion] Unreliable crash when converting using numpy.asarray via C buffer interface

2021-03-29 Thread Lev Maximov
I'm glad you sorted it out as the subject line sounded quite horrifying ) Best regards, Lev On Mon, Mar 29, 2021 at 2:54 PM Friedrich Romstedt < friedrichromst...@gmail.com> wrote: > Hi Matti, Sebastian and Lev, > > Am Mo., 15. Feb. 2021 um 18:50 Uhr schrieb Lev Maximov < > lev.maxi...@gmail.com

Re: [Numpy-discussion] Unreliable crash when converting using numpy.asarray via C buffer interface

2021-03-29 Thread Gunter Meissner
Aloha Numpy Community, I am just writing a book on "How to Cheat in Statistics - And get Away with It". I noticed there is no built-in syntax for the 'Adjusted R-squared' in any library (do correct me if I am wrong) I think it would be a good idea to program it. The math is straight forward, I can

[Numpy-discussion] Expanding the scope of numpy.unpackbits and numpy.packbits to include more than uint8 type

2021-03-29 Thread Rashiq Azhan
I would like this feature to be added since I think it can very useful when there is a need to process data that cannot be included in uint8. One of my personal requirements is modifying a 10-bit, per channel, images held in a NumPy array but I cannot do that using the specified functions. They are

Re: [Numpy-discussion] Expanding the scope of numpy.unpackbits and numpy.packbits to include more than uint8 type

2021-03-29 Thread Joseph Fox-Rabinovitz
You can view any array as uint8 On Mon, Mar 29, 2021, 14:27 Rashiq Azhan wrote: > I would like this feature to be added since I think it can very useful > when there is a need to process data that cannot be included in uint8. > One of my personal requirements is modifying a 10-bit, per channel,

[Numpy-discussion] ANN: SfePy 2021.1

2021-03-29 Thread Robert Cimrman
I am pleased to announce the release of SfePy 2021.1. Description --- SfePy (simple finite elements in Python) is a software for solving systems of coupled partial differential equations by finite element methods. It is distributed under the new BSD license. Home page: https://sfepy.org