Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michiel Cottaar
fslpy
Commits
15618c55
Commit
15618c55
authored
Jan 21, 2018
by
Paul McCarthy
🚵
Browse files
Added ALLOWED_EXTENSIONS back to fsl.data.mesh - no way to have a
deprecation warning on access though.
parent
ce312df9
Changes
2
Hide whitespace changes
Inline
Side-by-side
fsl/data/mesh.py
View file @
15618c55
...
@@ -698,7 +698,7 @@ def needsFixing(vertices, indices, fnormals, loBounds, hiBounds):
...
@@ -698,7 +698,7 @@ def needsFixing(vertices, indices, fnormals, loBounds, hiBounds):
class
TriangleMesh
(
Mesh
):
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.
instead.
"""
"""
...
@@ -783,3 +783,13 @@ def findReferenceImage(*args, **kwargs):
...
@@ -783,3 +783,13 @@ def findReferenceImage(*args, **kwargs):
"""Deprecated - use :func:`fsl.data.vtk.findReferenceImage` instead. """
"""Deprecated - use :func:`fsl.data.vtk.findReferenceImage` instead. """
import
fsl.data.vtk
as
fslvtk
import
fsl.data.vtk
as
fslvtk
return
fslvtk
.
findReferenceImage
(
*
args
,
**
kwargs
)
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."""
fsl/data/vtk.py
View file @
15618c55
...
@@ -7,6 +7,15 @@
...
@@ -7,6 +7,15 @@
"""This module provides the :class:`VTKMesh` class, for loading triangle
"""This module provides the :class:`VTKMesh` class, for loading triangle
meshes from VTK files.
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
.. note:: I/O support is very limited - currently, the only supported file
type is the VTK legacy file format, containing the ``POLYDATA``
type is the VTK legacy file format, containing the ``POLYDATA``
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment