[Numpy-discussion] Re: Getting scipy.interpolate.pchip_interpolate to return the first derivative of a pchip interpolation

2023-01-22 Thread Samuel Dupree
first derivative by 180/pi,  the interpolated first derivative coincides with the points for the cosine as expected. What I don't understand is how the interpolator came up with the scale factor it did and applied it using pure numbers. Any thoughts? Sam Dupree. On 1/21/23 18:04, Sam

[Numpy-discussion] Getting scipy.interpolate.pchip_interpolate to return the first derivative of a pchip interpolation

2023-01-21 Thread Samuel Dupree
I'm running SciPy ver. 1.9.3 under Python ver. 3.9.15  on a Mac Pro (2019) desktop running Mac OSX ver. 13.1 Ventura. The problem I'm having is getting scipy.interpolate.pchip_interpolate to return the first derivative of a pchip interpolation. The test program I'm using is given below (and at

Re: [Numpy-discussion] Compilation failures in f2py

2021-01-23 Thread Samuel Dupree
include/_stdio.h (besides possible older versions of MacOSX) Best, Chris Am Sa., 9. Jan. 2021 um 03:02 Uhr schrieb Samuel Dupree mailto:sdup...@speakeasy.net>>: I'm attempting to wrap a Fortran-77 source member library using f2py. I'm running he Anaconda distributi

Re: [Numpy-discussion] Do not understand what f2py is reporting

2020-11-02 Thread Samuel Dupree
ortran77, Fortran 90/95 syntax f2py will and will not accept? Sam Dupree. On November/02/2020 07:22:06, Andras Deak wrote: On Sun, Nov 1, 2020 at 2:33 AM Samuel Dupree wrote: I'm attempting to build wrappers around two Fortran routines. One is a Fortran 77 subroutine (see file grav

Re: [Numpy-discussion] Attempting to wrap a Fortran-77 subroutine using f2py but I haven't been able to understand what is causing the error

2020-10-19 Thread Samuel Dupree
org/doc/stable/f2py> Cheers, Melissa On Mon, Oct 19, 2020 at 2:35 PM Samuel Dupree <mailto:sdup...@speakeasy.net>> wrote: One more question. Where can I find a documentation on f2py that covers issues like assumed shaped arrays, and issues such as the one discussed in this p

Re: [Numpy-discussion] Attempting to wrap a Fortran-77 subroutine using f2py but I haven't been able to understand what is causing the error

2020-10-19 Thread Samuel Dupree
this message, delete your original cf2py lines in the .for file and compile it all using $ f2py -c rkfn78.pyf rkfn78.for --fcompiler=gfortran --f77flags="-c -O -Wall" -m rkfn78 then you'll have no trouble with assumed-shape arrays. Cheers, Melissa On Mon, Oct 19, 2020 at 1

Re: [Numpy-discussion] Attempting to wrap a Fortran-77 subroutine using f2py but I haven't been able to understand what is causing the error

2020-10-19 Thread Samuel Dupree
hat the callback FCN needs the dimension n as an argument. I was able to compile your code correctly after making these changes. If you have any further questions let me know, I hope this helps. Cheers, Melissa On Wed, Oct 14, 2020 at 4:03 AM Samuel Dupree <mailto:sdup...@speakeasy.net&g

[Numpy-discussion] Attempting to wrap a Fortran-77 subroutine using f2py but I haven't been able to understand what is causing the error

2020-10-14 Thread Samuel Dupree
I'm attempting to wrap a Fortran-77 source member using f2py. I'm running he Anaconda distribution for Python 3.7.6 on a Mac Pro (2019) under Mac OS X Catalina (ver. 10.15.6). The version of NumPy I'm running is 1.18.3. I've attached a copy of the Fortran source code to this note (see rkfn78.

Re: [Numpy-discussion] f2py is not recognizing Absoft Fortran Compiler

2019-04-27 Thread Samuel Dupree
On April/27/2019 21:59:37, Charles R Harris wrote: On Sat, Apr 27, 2019 at 7:40 PM Samuel Dupree <mailto:sdup...@speakeasy.net>> wrote: I'm attempting to build an interface between a Fortran application I have and Python. The problem I'm having is that f2py is

[Numpy-discussion] f2py is not recognizing Absoft Fortran Compiler

2019-04-27 Thread Samuel Dupree
I'm attempting to build an interface between a Fortran application I have and Python. The problem I'm having is that f2py is not recognizing my Absoft Fortran compiler. Details follow. I'm running on a iMacPro (2017) under Mac OS X Mojave (ver. 10.14.4). The version of the Absoft Compiler I'