summaryrefslogtreecommitdiff
path: root/numpy/f2py
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Fix merge errorRohit Goswami2023-05-121-13/+0
|
* BUG: Fix matching endifs with commentsRohit Goswami2023-05-121-3/+3
| | | | Harmonizes patterns a bit as well
* TST: Add a test for gh-23533Rohit Goswami2023-05-122-0/+32
|
* Merge pull request #23600 from HaoZeke/f2pyFuncFix_23598Sebastian Berg2023-04-286-1/+57
|\ | | | | BUG: Infer return types for Fortran functions in `f2py`
| * Merge branch 'main' into f2pyFuncFix_23598Sebastian Berg2023-04-264-51/+51
| |\
| * | TST: Add a test for the f2py function wrapper fileRohit Goswami2023-04-172-0/+33
| | |
| * | BUG: Ensure function wrappers have consistent argsRohit Goswami2023-04-171-0/+6
| | |
| * | MAINT: Fix tests for f2py inferred return typesRohit Goswami2023-04-161-2/+5
| | |
| * | BUG: Fix return types for functions in f2pyRohit Goswami2023-04-161-0/+2
| | |
| * | TST: Add a test for gh-23598Rohit Goswami2023-04-162-1/+13
| | |
* | | Merge pull request #22493 from mwtoews/maint-openSebastian Berg2023-04-281-1/+1
|\ \ \ | |_|/ |/| | MAINT: remove redundant open() modes and io.open() alias
| * | MAINT: remove redundant open() modes and io.open() aliasMike Taves2022-10-291-1/+1
| | |
* | | TST: Remove crackfortran.nameargspattern time test that failed randomly (#23662)molsonkiko2023-04-251-25/+15
| | | | | | | | | | | | | | | | | | also made the threshold for rejecting a regex as too slow much more lenient. 200ms should be enough time even for a bad CPU on a bad day. a bad regex should fail with near certainty
* | | Merge pull request #23470 from bobeldering/f2py-f77-array-parsing-fixCharles Harris2023-04-213-27/+37
|\ \ \ | |_|/ |/| | BUG: Fix bug in parsing F77 style string arrays.
| * | BUG: Fix bug in parsing F77 style string arrays.Bob Eldering2023-03-273-27/+37
| | | | | | | | | | | | | | | | | | | | | Example problematic variable: CHARACTER WORDARR(3)*8 This would be wrapped by an array with shape (3, 8) and dtype |S1, instead of the desired shape (3,) and dtype |S8. See #23356.
* | | DNM: test some more `selected_real_kind` results [skip azurepipelines]Derek Homeier2023-04-151-3/+24
| | |
* | | BUG: include macOS arm64 `machine()` value in `_selected_real_kind_func`Derek Homeier2023-04-152-5/+5
| | |
* | | MAINT: remove usages of sys.exc_info (#23568)Irit Katriel2023-04-111-6/+6
| | | | | | | | | This is similar to #15248, removing the remaining usages of sys.exc_info() that are no longer necessary.
* | | MAINT: add arm64 to f2py's selected_real_kindAndrew Nelson2023-04-091-1/+1
| | |
* | | make time tests more resilient to random noisemolsonkiko2023-03-261-7/+16
| | |
* | | make regex still match cases where OG fix failedmolsonkiko2023-03-262-7/+20
| | | | | | | | | | | | | | | | | | | | | My first replacement regex would have failed to match cases like '@)@bind foo bar baz@(@@)@' which should apparently be matched. Added a test to make sure the regex does this.
* | | update test for less arbitrary time requirementmolsonkiko2023-03-261-1/+2
| | |
* | | initial fix for nameargspattern regexmolsonkiko2023-03-262-3/+10
| | |
* | | add nameargspattern backtracking testmolsonkiko2023-03-261-0/+17
|/ /
* | Fix typos found by copdespellDimitri Papadopoulos2023-02-111-2/+2
| |
* | BUG: fix for f2py string scalars (#23194)Alexander Heger2023-02-113-3/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | in previous version, any string scalar was converted to a string array of dimension len, i.e., a definition character(len=N) :: X effectively became character(len=NNN), dimension(NNN) :: X from the point of few of the numpy (python) interface: X.shape == (NNN,) X.dtype == '|SNNN' Closes gh-23192
* | TST: Comment out spurious print in f2py testSebastian Berg2023-02-091-3/+4
| | | | | | | | Matti was wondering where it came from, so lets comment it out.
* | Merge pull request #23073 from DWesl/patch-2Matti Picus2023-01-301-0/+20
|\ \ | | | | | | CI: Rebase NumPy compiled extension test modules on Cygwin
| * | CI: Rebase numpy DLLs in runtests.py.DWesl2023-01-301-1/+2
| | | | | | | | | | | | | | | This assumes NumPy is rebased before tests run, but does not assume the locations are in the database.
| * | TST: Rebase F2Py-built extension modules.DWesl2023-01-291-0/+19
| | | | | | | | | | | | | | | Also adjust CI so they don't immediately collide with NumPy. I forgot to do that last time, which caused problems.
| * | Revert "FIX: Add glob import for test module rebase."DWesl2023-01-271-1/+0
| | | | | | | | | | | | This reverts commit 33709afdbbc47b7adb7dd06a730246d8c02f724f.
| * | Revert "TST: Rebase F2Py test modules on Cygwin."DWesl2023-01-271-16/+0
| | | | | | | | | | | | This reverts commit 608864613b801b9c85573186a9d07eeac5e7e465.
| * | FIX: Add glob import for test module rebase.DWesl2023-01-271-0/+1
| | | | | | | | | | | | Forgot to check this earlier.
| * | TST: Rebase F2Py test modules on Cygwin.DWesl2023-01-261-0/+16
| | | | | | | | | | | | Let's see if this fixes the 8-50 fork failures.
* | | BUG: Fixup f2py's handling a very little bitSebastian Berg2023-01-251-1/+8
|/ / | | | | | | | | | | | | | | | | | | | | This clears the error holding only to the type. Since in the other path the errmessage seemed completely uninitialized, I opted to just ignore it entirely and keep the old error. I could fathom to use error chaining here, but overall, I am not even sure that chaining makes even sense for these errors. This fix is meant to be minimal (the second one, I just noticed randomly), it does not make this code clean.
* | MAINT: `f2py` cleanup (#22885)Rohit Goswami2023-01-161-19/+15
| | | | | | | | | | | | | | Updates the free format handling of .f90 and other common extensions (through a minor re-write). Also removes an unused function. This disallows previously allowed (but highly unlikely to be present) code-paths, namely having fixed form F77 code in a fortran 90 file (with .f90). Co-authored-by: Sebastian Berg <sebastianb@nvidia.com>
* | BUG: Use whole file for encoding checks with `charset_normalizer` [f2py] ↵Rohit Goswami2022-12-253-25/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#22872) * BUG: Use whole file for encoding checks [f2py] * DOC: Add a code comment Co-authored-by: melissawm <melissawm@gmail.com> * TST: Add a conditional unicode f2py test * MAINT: Add chardet as a test requirement * ENH: Cleanup and switch f2py to charset_normalizer * MAINT: Remove chardet for charset_normalizer * TST: Simplify UTF-8 encoding [f2py] Co-authored-by: melissawm <melissawm@gmail.com>
* | TST: Skip tests that are not currently supported in wasmHood Chatham2022-11-112-1/+7
|/
* Merge pull request #22483 from mwtoews/maint-subprocessSebastian Berg2022-10-281-2/+1
|\ | | | | MAINT: change subprocess arguments from Python>=3.7
| * MAINT: change subprocess arguments from Python>=3.7Mike Taves2022-10-271-2/+1
| |
* | TST: Rename setup to setup_method in f2py utils (inherited into Tests)Sebastian Berg2022-10-272-2/+2
| |
* | TST,MAINT: Replace most `setup` with `setup_method` (also teardown)Sebastian Berg2022-10-271-2/+2
|/ | | | | | | | In some cases, the replacement is clearly not what is intended, in those (where setup was called explicitly), I mostly renamed `setup` to `_setup`. The `test_ccompile_opt` is a bit confusing, so left it right now (this will probably fail)
* Merge pull request #22385 from seberg/deprecate-out-of-bound-pyint-conversionMatti Picus2022-10-113-3/+3
|\ | | | | DEP: Deprecate conversion of out-of-bound Python integers
| * TST: Further test fixup for python integer conversion warningSebastian Berg2022-10-061-1/+1
| |
| * TST: Fixup tests for strict Python integer conversionsSebastian Berg2022-10-052-2/+2
| |
* | DOC: Add reference links and switch to PyCapsuleRohit Goswami2022-10-101-1/+1
| |
* | DOC: Replace CObject with Capsule consistentlyRohit Goswami2022-10-101-1/+1
| |
* | MAINT: Fix typos found by codespellDimitri Papadopoulos2022-10-071-1/+1
|/
* MAINT, Haiku defines neither __STDC_NO_THREADS__ nor __GLIBC__begasus2022-09-161-1/+1
|
* MAINT: fix an incorrect pointer type usage in f2pyRalf Gommers2022-08-311-3/+3
| | | | | | | | | | | | | | | | | | | | | This was giving many warnings like this one in the SciPy build: ``` scipy/special/_specfunmodule.c: In function 'complex_double_from_pyobj': scipy/special/_specfunmodule.c:198:47: warning: passing argument 1 of 'PyArray_DATA' from incompatible pointer type [-Wincompatible-pointer-types] 198 | (*v).r = ((npy_cdouble *)PyArray_DATA(arr))->real; | ^~~ | | | PyObject * {aka struct _object *} In file included from /home/rgommers/code/numpy/numpy/core/include/numpy/ndarrayobject.h:12, from /home/rgommers/code/numpy/numpy/core/include/numpy/arrayobject.h:5, from /home/rgommers/code/numpy/numpy/f2py/src/fortranobject.h:16, from scipy/special/_specfunmodule.c:22: /home/rgommers/code/numpy/numpy/core/include/numpy/ndarraytypes.h:1524:29: note: expected 'PyArrayObject *' {aka 'struct tagPyArrayObject *'} but argument is of type 'PyObject *' {aka 'struct _object *'} 1524 | PyArray_DATA(PyArrayObject *arr) | ~~~~~~~~~~~~~~~^~~ ``` Fixing pointer mismatches is important for Pyodide/Emscripten.