Skip to content
Snippets Groups Projects
Commit 15618c55 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

Added ALLOWED_EXTENSIONS back to fsl.data.mesh - no way to have a

deprecation warning on access though.
parent ce312df9
No related branches found
No related tags found
No related merge requests found
......@@ -698,7 +698,7 @@ def needsFixing(vertices, indices, fnormals, loBounds, hiBounds):
class TriangleMesh(Mesh):
"""Deprecated - use :class:`fsl.data.mesh.Mesh`, or one 'of its sub-classes
"""Deprecated - use :class:`fsl.data.mesh.Mesh`, or one of its sub-classes
instead.
"""
......@@ -783,3 +783,13 @@ def findReferenceImage(*args, **kwargs):
"""Deprecated - use :func:`fsl.data.vtk.findReferenceImage` instead. """
import fsl.data.vtk as fslvtk
return fslvtk.findReferenceImage(*args, **kwargs)
ALLOWED_EXTENSIONS = ['.vtk']
"""Deprecated, will be removed in fslpy 2.0.0. Use
:attr:`fsl.data.vtk.ALLOWED_EXTENSIONS` instead."""
EXTENSION_DESCRIPTIONS = ['VTK polygon model file']
"""Deprecated, will be removed in fslpy 2.0.0. Use
:attr:`fsl.data.vtk.EXTENSION_DESCRIPTIONS` instead."""
......@@ -7,6 +7,15 @@
"""This module provides the :class:`VTKMesh` class, for loading triangle
meshes from VTK files.
A handful of convenience functions are also in this module:
.. autosummary::
:nosignatures:
loadVTKPolyDataFile
getFIRSTPrefix
findReferenceImage
.. note:: I/O support is very limited - currently, the only supported file
type is the VTK legacy file format, containing the ``POLYDATA``
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment