summaryrefslogtreecommitdiff
path: root/numpy/f2py/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* BUG: Fix array dimensions solver for multidimensional arguments in f2py (#20721)Pearu Peterson2022-01-041-3/+5
| | | * BUG: Fix array dimensions solver for multidimensional arguments in f2py. See #20709
* DEP: remove NPY_ARRAY_UPDATEIFCOPY, deprecated in 1.14 (#20589)Matti Picus2021-12-182-2/+0
| | | | | | | | | | | | | * DEP: remove NPY_ARRAY_UPDATEIFCOPY, deprecated in 1.14 * remove more UPDATEIFCOPY * typo: add missing comma * remove a few more UPDATEIFCOPY * Add release note * remove UPDATEIFCOPY from comment (from review)
* MAINT,TST: Reduce np.testing to IS_PYPYRohit Goswami2021-12-0623-399/+336
| | | | Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>
* MAINT,TST: Refactor F2PY testsRohit Goswami2021-12-0636-887/+831
|
* MAINT: Update to better python stylesRohit Goswami2021-12-054-45/+43
| | | | Co-authored-by: Pearu Peterson <pearu.peterson@gmail.com>
* MAINT: Rework whitespace to pass PR checksRohit Goswami2021-12-0524-737/+880
| | | | Co-authored-by: Charles Harris <charlesr.harris@gmail.com>
* TST,STY: Use a context manager for F2PY functionsRohit Goswami2021-12-032-22/+25
|
* TST,STY: Clean up F2PY tests for pathlib.PathRohit Goswami2021-12-0312-72/+46
|
* STY: F2PY tests shouldn't printRohit Goswami2021-11-281-9/+0
|
* TST,MAINT: Fix F2PY test typoRohit Goswami2021-11-281-1/+1
|
* MAINT: remove unused importsAlessia Marcolini2021-10-082-4/+0
|
* Merge pull request #19997 from HaoZeke/f2py_tabsCharles Harris2021-10-041-3/+3
|\ | | | | STY: Harmonize rules with cb_rules for f2py
| * MAINT: Reviewer commentsRohit Goswami2021-09-301-5/+5
| | | | | | | | Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
| * STY: Kill all \t with fire in f2pyRohit Goswami2021-09-291-2/+2
| |
* | BUG: avoid infinite recurrence on dependencies in crackfortranDamien Caliste2021-10-011-0/+17
|/
* MAINT: Minor cleanups after merging gh-19805Charles Harris2021-09-261-2/+2
| | | | | - Spelling fixes - Release note fragment for gh-19805.
* Merge pull request #19805 from pearu/gh-8062-dimdecsCharles Harris2021-09-262-0/+561
|\ | | | | ENH: Symbolic solver for dimension specifications.
| * Fix a bug in dependencies. Implement support for relational operations.Pearu Peterson2021-09-031-1/+37
| |
| * Add ternary, ref, and deref expressions support.Pearu Peterson2021-09-031-18/+49
| |
| * ENH: [f2py] Symbolic solver for dimension specifications.Pearu Peterson2021-09-012-0/+494
| |
* | DOC: Typos found by codespellDimitri Papadopoulos2021-09-211-2/+2
| |
* | Merge pull request #19810 from charris/update-some-includesCharles Harris2021-09-031-1/+3
|\ \ | | | | | | MAINT: Minor include rationalizations.
| * | MAIN: Minor include rationalization.Charles Harris2021-09-031-1/+3
| |/ | | | | | | | | | | | | - Replace "Python.h" by <Python.h> - Replace "structmember.h" by <structmember.h> - Replace <npy_config> by "npy_config" - Define PY_SSIZE_T_CLEAN before all Python.h includes in .c files.
* | MAINT: revise OSError aliases (IOError, EnvironmentError)Mike Taves2021-09-021-1/+1
|/
* BUG: f2py markinnerspace for multiple quotations (#19419)Matti Picus2021-07-081-2/+28
| | | | | | | | | | | | | | | | | | | | | | | Continuation of #15208 * BUG: markinnerspaces does not handle multiple quotations * TST: test for markinnerspaces in f2py.crackfortran * TST: tests for markinnerspaces with " * DOC: markinnerspaces in f2py.crackfortran * MAINT: more readable r strings in TestMarkinnerspaces * ENH: give variables names, change 'inside' to bool * :TEST, MAINT: add tests and changes from review * MAINT: lint fixes * BUG: typo Co-authored-by: bdvd <bdvd001@gmail.com>
* ENH: add `numpy.f2py.get_include` functionRalf Gommers2021-06-191-6/+14
| | | | | This is useful for similar reasons as `numpy.get_include`, see https://github.com/numpy/numpy/issues/14960#issuecomment-846460159
* BUG: revise string_from_pyobj/try_pyarr_from_string with respect to malloc ↵Pearu Peterson2021-06-153-6/+150
| | | | and copy (the second round)
* Revert "BUG: revise string_from_pyobj/try_pyarr_from_string with respect to ↵Ralf Gommers2021-06-133-147/+5
| | | | malloc and copy." (#19235)
* Minor fixesPearu Peterson2021-05-261-2/+2
|
* MAINT: apply sizeof(char)==1Pearu Peterson2021-05-261-1/+1
|
* BUG: revise string_from_pyobj/try_pyarr_from_string usages, fixes #18431.Pearu Peterson2021-05-102-4/+146
|
* TST: Skip f2py TestSharedMemory for LONGDOUBLE on macos/arm64Olivier Grisel2021-04-271-1/+5
| | | | LONGDOUBLE is an alias for DOUBLE on this platform.
* STY: Indentation fixes.Charles Harris2021-03-311-7/+7
|
* TST: Tests for parsing Fortran abstract interface and a working example.Pearu Peterson2021-03-311-0/+66
|
* MAINT: use super() as described by PEP 3135Mike Taves2021-03-191-1/+1
|
* BUG: Fix parsing continued lines that follow comment lines. Closes #2848Pearu Peterson2021-02-151-0/+24
|
* BUG: fix regression in a hidden callback use casePearu Peterson2021-02-092-1/+49
|
* MAINT: Debug issue #18341Pearu Peterson2021-02-091-1/+1
|
* ENH: Share memory of read-only intent(in) arrays. Closes #16347Pearu Peterson2021-02-071-0/+13
|
* BUG: Fix missing signed_char dependency. Closes #18335.Pearu Peterson2021-02-071-0/+40
|
* Applied reviewers comments: add identPearu Peterson2021-01-191-9/+10
|
* Apply reviewer comments.Pearu Peterson2021-01-191-2/+2
|
* Apply reviewers comments.Pearu Peterson2021-01-191-7/+7
|
* Add test for gh17797.Pearu Peterson2021-01-181-0/+24
|
* ENH: [f2py] Add external attribute support. Closes #17859Pearu Peterson2021-01-171-0/+29
|
* DEP: Deprecate `data_type.dtype` if attribute is not already a dtype (#13578)Sebastian Berg2021-01-061-42/+42
| | | | | | * DEP: Deprecate `data_type.dtype` if attribute is not already a dtype After the deprecation, a recursive lookup for `.dtype` will not be possible, since `.dtype` has to be a dtype instance.
* Revert PR gh-17654 which failed to fix issue gh-8062.Ian Thomas2020-11-051-22/+0
| | | | See also PR gh-17687.
* TST: Make test suite work in FIPS (140-2) ModeNikola Forró2020-10-291-2/+0
| | | | | | | | | Tests using MD5 algorithms fail in FIPS Mode because MD5 is not FIPS compliant. Replace MD5 with SHA256 to overcome that. Signed-off-by: Nikola Forró <nforro@redhat.com>
* BUG: f2py incorrectly translates dimension declarations.Ian Thomas2020-10-271-0/+22
| | | | | | | | | | | | | | In fortran functions passed to f2py, calculations that occur in the dimensions of array declarations are interpreted as floats. Valid fortran requires integers. Problem only occurs with fortran functions not subroutines as only for the former does f2py generate fortran wrapper code that fails to compile. Relevant code is in numpy.f2py.crackfortran.getlincoef(), which calculates and returns the coefficients to getarrlen() for writing to the fortran wrapper code. Fixes gh-8062.
* Added textwrap.dedent to test.MelissaWM2020-09-261-2/+10
|