Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Michiel Cottaar
fslpy
Commits
002b9819
Commit
002b9819
authored
8 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
Spline interpolation option will fall back to linear if spline not
available.
parent
3a8292c5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fsl/fsleyes/gl/__init__.py
+4
-12
4 additions, 12 deletions
fsl/fsleyes/gl/__init__.py
with
4 additions
and
12 deletions
fsl/fsleyes/gl/__init__.py
+
4
−
12
View file @
002b9819
...
...
@@ -343,6 +343,10 @@ def bootstrap(glVersion=None):
import
fsl.fsleyes.displaycontext.display
as
fsldisplay
dc
.
VolumeOpts
.
interpolation
.
removeChoice
(
'
spline
'
)
dc
.
RGBVectorOpts
.
interpolation
.
removeChoice
(
'
spline
'
)
dc
.
VolumeOpts
.
interpolation
.
updateChoice
(
'
linear
'
,
newAlt
=
[
'
spline
'
])
dc
.
RGBVectorOpts
.
interpolation
.
updateChoice
(
'
linear
'
,
newAlt
=
[
'
spline
'
])
# Tensor overlays are not available in GL14
dc
.
ALL_OVERLAY_TYPES
.
remove
(
'
tensor
'
)
...
...
@@ -365,20 +369,8 @@ def bootstrap(glVersion=None):
'
lowering default performance settings.
'
)
import
fsl.fsleyes.displaycontext
as
dc
dc
.
SceneOpts
.
performance
.
setConstraint
(
None
,
'
default
'
,
2
)
# And disable some fancy options - spline
# may have been disabled above, so absorb
# the ValueError if it occurs
# TODO Remove this code duplication
try
:
dc
.
VolumeOpts
.
interpolation
.
removeChoice
(
'
spline
'
)
dc
.
RGBVectorOpts
.
interpolation
.
removeChoice
(
'
spline
'
)
except
ValueError
:
pass
thismod
.
GL_VERSION
=
verstr
thismod
.
glvolume_funcs
=
glpkg
.
glvolume_funcs
thismod
.
glrgbvector_funcs
=
glpkg
.
glrgbvector_funcs
...
...
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