summaryrefslogtreecommitdiff
path: root/numpy/f2py
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #21890 from HaoZeke/fixSylcotRegressionCharles Harris2022-07-081-1/+1
|\ | | | | BUG: Fix KeyError in crackfortran operator support
| * BUG: Fix KeyError in crackfortran operator supportRohit Goswami2022-06-301-1/+1
| |
* | Merge pull request #21807 from HaoZeke/useFortranValueMelissa Weber Mendonça2022-07-024-4/+31
|\ \ | |/ |/|
| * TST: Ensure the f2py value attribute is handledRohit Goswami2022-06-212-0/+23
| |
| * ENH: Generate wrappers for scalars with valueRohit Goswami2022-06-212-4/+8
| |
* | TST: Tighten test_gen_pyf_stdout checkNamami Shanker2022-06-231-0/+1
| |
* | TST: Add f2py2e f2cmap flag testNamami Shanker2022-06-231-3/+23
|/
* MAINT: fix up use of `NPY_NO_DEPRECATED_API` usage in f2pyRalf Gommers2022-06-171-1/+3
| | | | | | | | | | | | | | | This was giving a lot of warnings like: numpy/f2py/src/fortranobject.h:9: warning: "NPY_NO_DEPRECATED_API" redefined when building SciPy. In general, this is generated code which is included in the build of other projects which may have already set this macro - so only set it if it is not yet set. The other change is to set it to the current numpy version, like is done everywhere else in numpy, rather than to a fixed 1.7 version. This will ensure that if new deprecations happen, f2py gets updated for them.
* TST: Ensure long_long in f2cmap worksRohit Goswami2022-06-103-0/+25
|
* BUG: Generate C typedefs for f2cmap typesRohit Goswami2022-06-102-0/+5
|
* Merge pull request #19388 from pearu/enh-f2py-character-supportMelissa Weber Mendonça2022-06-0619-345/+1693
|\ | | | | Co-authored-by: Rohit Goswami <rog32@hi.is>
| * MAINT,DOC: Fix doc fragments and testsRohit Goswami2022-06-051-1/+1
| |
| * TST: Fix build by changing call signatureRohit Goswami2022-06-051-1/+1
| |
| * ENH: Support character string arraysPearu Peterson2022-06-0519-345/+1693
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TST: added test for issue #18684 ENH: f2py opens files with correct encoding, fixes #635 TST: added test for issue #6308 TST: added test for issue #4519 TST: added test for issue #3425 ENH: Implement user-defined hooks support for post-processing f2py data structure. Implement character BC hook. ENH: Add support for detecting utf-16 and utf-32 encodings.
* | ENH: complete the 'vars' list of a moduleDamien Caliste2022-06-053-2/+21
|/ | | | | | Add to the 'vars' list of a module missing subroutines or functions listed in the 'body' that have not been explicitely declared 'public' or 'private'.
* BUG: Fix a refactor leftover bugNamami Shanker2022-06-031-1/+1
|
* Merge pull request #21622 from HaoZeke/f2pySkipTestsCharles Harris2022-05-291-0/+5
|\ | | | | TST: Skip F2PY tests without Fortran compilers
| * TST: Handle compiler checks for PYFRohit Goswami2022-05-281-4/+9
| |
| * MAINT: Skip F2PY tests without Fortran compilersRohit Goswami2022-05-271-4/+4
| |
* | MAINT: Python <3.7 related cleanupsBrigitta Sipőcz2022-05-231-18/+13
| |
* | MAINT: Kill unused fileRohit Goswami2022-05-052-57/+3
|/ | | | Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
* TST: Kill buggy 32-bit testsRohit Goswami2022-04-302-0/+14
|
* BUG: Fix handling of skip-empty-wrappersRohit Goswami2022-04-302-3/+3
|
* Merge pull request #21407 from HaoZeke/gh20460fixRohit Goswami2022-04-302-2/+9
|\ | | | | MAINT: Reduce f2py verbiage for valid parameters
| * MAINT: Skip buggy windows testRohit Goswami2022-04-301-2/+2
| |
| * MAINT: Hoist f2py condition outside try-exceptRohit Goswami2022-04-301-8/+9
| | | | | | | | | | Co-authored-by: Pearu Peterson <pearu.peterson@gmail.com> Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>
| * MAINT: handle precision in selected_real_kindRohit Goswami2022-04-291-2/+6
| |
| * MAINT: Reduce f2py verbiage for valid parametersRohit Goswami2022-04-281-1/+3
| |
* | Merge pull request #21187 from HaoZeke/f2pyDeterminismRohit Goswami2022-04-292-0/+23
|\ \ | |/ |/| ENH: F2PY build output determinism
| * MAINT: Pick a better nameRohit Goswami2022-04-291-2/+2
| | | | | | | | | | | | Co-authored-by: Ralf Gommers <ralf.gommers@gmail.com> Co-authored-by: Pearu Peterson <pearu.peterson@gmail.com> Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>
| * ENH: Switch to a negative flagRohit Goswami2022-03-211-16/+5
| | | | | | | | | | | | Also remove FutureWarning and update documentation Co-authored-by: Ralf Gommers <ralf.gommers@gmail.com>
| * MAINT: Add a future warning for --empty-genRohit Goswami2022-03-211-0/+10
| |
| * ENH: Do not generate F90 wrappers for F77 inputsRohit Goswami2022-03-212-10/+19
| |
| * ENH: Add an emptygen option for f2pyRohit Goswami2022-03-121-0/+15
| |
* | TST: Initialize f2py2e tests of the F2PY CLI (#20668)Rohit Goswami2022-04-014-3/+757
| | | | | | | | | | Increases F2PY coverage by around 15 percent. For the CLI itself it covers the major features (around 70 percent), with the exception of mostly numpy.distutils stuff. More importantly, sets the groundwork for #20056, in that passing the same testsuite should indicate feature parity.
* | BUG,ENH: Fix negative bounds for F2PY (#21256)Rohit Goswami2022-03-313-2/+35
| | | | | | Co-authored-by: Pearu Peterson <pearu.peterson@gmail.com>
* | Merge pull request #20884 from HaoZeke/f2py_npyOSRohit Goswami2022-03-212-6/+8
|\ \ | | | | | | MAINT: Minor cleanup to F2PY
| * | MAINT: Use more NPY_OSRohit Goswami2022-03-071-2/+2
| | |
| * | MAINT: Use npy_os in f2pyRohit Goswami2022-03-062-2/+3
| | |
| * | MAINT: Restructure includes slightlyRohit Goswami2022-03-062-2/+3
| |/
* | BUG: f2py cannot read in customised f2cmap fileTing Sun2022-03-161-2/+2
|/ | | | Fixes numpy/numpy#21204
* Merge pull request #20559 from melissawm/f2py-guideRohit Goswami2022-02-222-15/+17
|\ | | | | DOC: Refactoring f2py user guide
| * DOC: Refactoring f2py user guidemelissawm2022-01-052-15/+17
| |
* | MAINT: f2py: don't generate code that triggers `-Wsometimes-uninitialized` ↵Ralf Gommers2022-02-011-22/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#20940) * MAINT: f2py: don't generate code that triggers `-Wsometimes-uninitialized` Warnings look like: ``` scipy/linalg/_flapackmodule.c:2200:9: warning: variable 'return_value' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] if (capi_j>capi_i) ^~~~~~~~~~~~~ scipy/linalg/_flapackmodule.c:2217:12: note: uninitialized use occurs here return return_value; ^~~~~~~~~~~~ scipy/linalg/_flapackmodule.c:2200:5: note: remove the 'if' if its condition is always true if (capi_j>capi_i) ^~~~~~~~~~~~~~~~~~ scipy/linalg/_flapackmodule.c:2099:21: note: initialize the variable 'return_value' to silence this warning int return_value; ^ = 0 ``` Also: - Initialize complex return value. - Warn on non-void callback returning None. - Use brackets in if-else block. This makes the code more readable. Co-authored-by: Pearu Peterson <pearu.peterson@gmail.com>
* | BUG: fix f2py's define for threading when building with MingwRalf Gommers2022-01-231-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes https://github.com/rgommers/scipy/issues/125 This is a follow-up of gh-18910 (included in 1.20.3 and 1.21.0), which looks incorrect. This fixes warnings like these when building SciPy with Mingw-w64: ``` [94/1557] Compiling C object scipy/linalg/_flapack.cp39-win_amd64.pyd.p/meson-generated_..__flapackmodule.c.obj In file included from C:\hostedtoolcache\windows\Python\3.9.9\x64\lib\site-packages\numpy\core\include/numpy/ndarraytypes.h:4, from C:\hostedtoolcache\windows\Python\3.9.9\x64\lib\site-packages\numpy\core\include/numpy/ndarrayobject.h:12, from C:\hostedtoolcache\windows\Python\3.9.9\x64\lib\site-packages\numpy\core\include/numpy/arrayobject.h:4, from C:\hostedtoolcache\windows\Python\3.9.9\x64\lib\site-packages\numpy\f2py\src/fortranobject.h:13, from scipy/linalg/_flapackmodule.c:16: scipy/linalg/_flapackmodule.c:1248:1: warning: 'thread' attribute directive ignored [-Wattributes] 1248 | static F2PY_THREAD_LOCAL_DECL cb_cselect_in_gees__user__routines_t *_active_cb_cselect_in_gees__user__routines = NULL; | ^~~~~~ scipy/linalg/_flapackmodule.c:1410:1: warning: 'thread' attribute directive ignored [-Wattributes] 1410 | static F2PY_THREAD_LOCAL_DECL cb_zselect_in_gees__user__routines_t *_active_cb_zselect_in_gees__user__routines = NULL; | ^~~~~~ scipy/linalg/_flapackmodule.c:1572:1: warning: 'thread' attribute directive ignored [-Wattributes] 1572 | static F2PY_THREAD_LOCAL_DECL cb_sselect_in_gees__user__routines_t *_active_cb_sselect_in_gees__user__routines = NULL; | ^~~~~~ scipy/linalg/_flapackmodule.c:1738:1: warning: 'thread' attribute directive ignored [-Wattributes] 1738 | static F2PY_THREAD_LOCAL_DECL cb_dselect_in_gees__user__routines_t *_active_cb_dselect_in_gees__user__routines = NULL; | ^~~~~~ ... ``` Also fixes gh-19437, where `__STDC_NO_THREADS__` should be defined but isn't (this seems to be more common, e.g. one can reports for ICC about this).
* | Fixing the typoSomasree Majumder2022-01-191-1/+2
| |
* | Merge pull request #15844 from dcaliste/typeMelissa Weber Mendonça2022-01-173-1/+43
|\ \
| * | ENH: add inline definition of access rights for Fortran typesDamien Caliste2022-01-043-1/+43
| | | | | | | | | | | | | | | | | | Allow to parse type definition with inline acess specifier, like: type, public :: foo end type foo
* | | Merge pull request #20784 from DimitriPapadopoulos/codespellCharles Harris2022-01-121-1/+1
|\ \ \ | | | | | | | | MAINT, DOC: fix new typos detected by codespell
| * | | MAINT, DOC: fix new typos detected by codespellDimitri Papadopoulos2022-01-121-1/+1
| | |/ | |/|