Revision 7241bd017692069490642e1d5ca5a994580b2a4f authored by Joost van Griethuysen on 22 March 2018, 12:11:25 UTC, committed by Joost van Griethuysen on 26 March 2018, 15:35:00 UTC
Ensure all C extensions use similar signatures where possible (e.g. work with pointers for sizes, use strides extracted from the numpy array descriptions). This includes a bug fix in GLSZM calculation, where the newly created output array was not initialized with 0's.

Additionally, add extra tests for the angles array: ensure that the shape is (Na, 3) and move this testing functionality to a separate function (as the same function can then be reused by all C extensions for texture matrices.

Finally, factor out use of deprecated Numpy C API functions and add define to disable deprecated API.
1 parent ea9a6ce
Raw File
.gitignore
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
#  Usually these files are written by a python script from a template
#  before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache

# Temp editor files
*~
nosetests.xml
coverage.xml
*,cover

# Translations
*.mo
*.pot

# Django stuff:
*.log

# Sphinx documentation
docs/_build/

# IDE junk
.idea/*
*.swp

# PyBuilder
target/
back to top