[Numpy-discussion] Re: Code formatters

2021-11-14 Thread Jeff Reback
:) would encourage numpy to do the same Jeff > > On Nov 14, 2021, at 2:32 PM, Charles R Harris > wrote: > >  > > >> On Sun, Nov 14, 2021 at 11:40 AM Ralf Gommers wrote: >> >> >>> On Sun, Nov 14, 2021 at 6:14 PM Charles R Harris >>>

Re: [Numpy-discussion] Proposals for NumPy 1.22.0

2021-06-09 Thread Jeff Reback
>> Drop support for Python 3.7 (3.10 will be available). FYI pandas is going to drop 3.7 in 1.4 (likely releases early next year) > > On Jun 9, 2021, at 4:16 PM, Ralf Gommers wrote: > >  > > >> On Wed, Jun 9, 2021 at 8:19 PM Charles R Harris >> wrote: >> Hi All, >> >> Here are some

Re: [Numpy-discussion] Is there a defined way to "unpad" an array, and if not, should there be?

2021-04-12 Thread Jeff Gostick
or this purpose: https://github.com/PMEAL/porespy/blob/dev/porespy/tools/_unpadfunc.py On Mon, Apr 12, 2021 at 9:15 PM Stephan Hoyer wrote: > On Mon, Apr 12, 2021 at 5:12 PM Jeff Gostick wrote: > >> I guess I should have clarified that I was inquiring about proposing a >> 'feat

Re: [Numpy-discussion] Is there a defined way to "unpad" an array, and if not, should there be?

2021-04-12 Thread Jeff Gostick
> (x[20:20+orig_x.shape[0]]). > > Aaron Meurer > > > > > > > On Mon, Apr 12, 2021 at 1:15 PM Jeff Gostick wrote: > >> > >> I often find myself padding an array to do some processing on it (i.e. > to avoid edge artifacts), then I need to remove the padding.

Re: [Numpy-discussion] Is there a defined way to "unpad" an array, and if not, should there be?

2021-04-12 Thread Jeff Gostick
nts on the right hand side, because Python interprets an ending slice > of zero differently -- you need to write something like x[20:] to undo > padding by [(20, 0)]. > > > On Mon, Apr 12, 2021 at 1:15 PM Jeff Gostick wrote: > >> I often find myself padding an array to do some

[Numpy-discussion] Is there a defined way to "unpad" an array, and if not, should there be?

2021-04-12 Thread Jeff Gostick
bers (e.g [-20, -4] would undo a padding of [20, 4]). This seems like a pretty obvious feature to me so maybe I've just missed something, but I have looked through all the open and closed issues on github and don't see anything related to this. Jeff G ___

Re: [Numpy-discussion] NumPy 1.20.x branch in two weeks

2020-11-01 Thread Jeff Reback
pandas has already dropped 3.6 support in our coming 1.2 release (nov 2020); 1.1.x supports 3.6 > On Nov 1, 2020, at 9:04 PM, Charles R Harris > wrote: > >  > > > On Sun, Nov 1, 2020 at 6:48 PM Mark Harfouche > wrote: >>> >>> Do you think the proposal is not in compliance? There is no

[Numpy-discussion] three-dim array

2018-12-25 Thread Jeff
hello, sorry newbe to numpy. I want to define a three-dim array. I know this works: >>> np.array([[[1,2],[3,4]],[[5,6],[7,8]]]) array([[[1, 2], [3, 4]], [[5, 6], [7, 8]]]) But can you tell why this doesnt work? >>> np.array([[1,2],[[1,2],[3,4]]]) Traceback (most

Re: [Numpy-discussion] Looking for description/insight/documentation on matmul

2018-07-10 Thread jeff saremi
Looks great. thanks a lot From: NumPy-Discussion on behalf of Stephan Hoyer Sent: Monday, July 9, 2018 10:50 AM To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] Looking for description/insight/documentation on matmul Hi Jeff, I think PEP

Re: [Numpy-discussion] Looking for description/insight/documentation on matmul

2018-07-10 Thread jeff saremi
On 09/07/18 09:48, jeff saremi wrote: > Is there any resource available or anyone who's able to describe > matmul operation of matrices when n > 2? > > The only description i can find is: "If either argument is N-D, N > 2, > it is treated as a stack of matrices residi

[Numpy-discussion] Looking for description/insight/documentation on matmul

2018-07-09 Thread jeff saremi
t; which is very cryptic to me. Could someone break this down please? when a [2 3 5 6] is multiplied by a [7 8 9] what are the resulting dimensions? is there one answer to that? Is it deterministic? What does "residing in the last two indices" mean? What is broadc

Re: [Numpy-discussion] F2PY problems with PGI compilers

2017-08-14 Thread Jeff Layton
On 08/14/2017 10:19 AM, Jeff Layton wrote: On 08/14/2017 03:51 AM, Ralf Gommers wrote: I'm definitely at a lose here. I have no idea how to make F2PY work with the PGI compilers. I'm beginning to think F2PY is completely borked unless you use the defaults (gcc). That's

Re: [Numpy-discussion] F2PY problems with PGI compilers

2017-08-14 Thread Jeff Layton
On 08/14/2017 10:27 AM, Jeff Layton wrote: On 08/14/2017 04:05 AM, Pauli Virtanen wrote: Ralf Gommers kirjoitti 14.08.2017 klo 09:51: I'm definitely at a lose here. I have no idea how to make F2PY work with the PGI compilers. I'm beginning to think F2PY is completely borked

Re: [Numpy-discussion] F2PY problems with PGI compilers

2017-08-14 Thread Jeff Layton
C/C++ code on platform 'posix' with 'gcc' compiler Good point about f2py. I'm using the Anaconda distribution of f2py and that may have limitations with respect to the PGI compiler. I may download the f2py source and build it to include PGI support. Maybe that will fix the problem. Tha

Re: [Numpy-discussion] F2PY problems with PGI compilers

2017-08-13 Thread Jeff Layton
+SciPy list On Sat, Aug 5, 2017 at 7:24 AM, Jeff Layton <layto...@att.net <mailto:layto...@att.net>> wrote: Good afternoon! I'm trying to build a Python module using F2PY on a simple Fortran code using the PGI 17.4 community compilers. I'm using Conda 4.3.21

[Numpy-discussion] F2PY problems with PGI compilers

2017-08-04 Thread Jeff Layton
from f2py is at the end of the email. Any suggestions are greatly appreciated. Thanks! Jeff Output from f2py: running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc unifing config_fc, config, build_clib, build_ext