Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Evan Edmond
fslpy
Commits
15618c55
Commit
15618c55
authored
7 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fsl/data/mesh.py
+11
-1
11 additions, 1 deletion
fsl/data/mesh.py
fsl/data/vtk.py
+9
-0
9 additions, 0 deletions
fsl/data/vtk.py
with
20 additions
and
1 deletion
fsl/data/mesh.py
+
11
−
1
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.
"""
This diff is collapsed.
Click to expand it.
fsl/data/vtk.py
+
9
−
0
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``
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment