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
FSL
melview
Commits
f3977763
Commit
f3977763
authored
Nov 17, 2012
by
Dave Flitney
Browse files
A light greeen indicator when Signal has been indicated
parent
96ac7807
Changes
2
Hide whitespace changes
Inline
Side-by-side
melview.ini
deleted
100644 → 0
View file @
96ac7807
path
=
/vols/Data/steve/FIX/HCP_hp100/CP10051_v3.ica/filtered_func_data.ica
bgpath
=
/vols/Data/steve/FIX/HCP_hp100/CP10051_v3.ica/filtered_func_data.ica/mean.nii.gz
melview/melodic_traits.py
View file @
f3977763
...
@@ -38,7 +38,8 @@ from fsl.melodic import *
...
@@ -38,7 +38,8 @@ from fsl.melodic import *
# To be able to use PySide or PyQt4 and not run in conflicts with traits,
# To be able to use PySide or PyQt4 and not run in conflicts with traits,
# we need to import QtGui and QtCore from pyface.qt
# we need to import QtGui and QtCore from pyface.qt
#from pyface.qt import QtGui, QtCore
#from pyface.qt import QtGui, QtCore
#from pyface.api import FileDialog, OK, confirm, error, YES
from
pyface.api
import
FileDialog
,
OK
,
confirm
,
error
,
YES
#from PyQt4.QtGui import QWidget, QSizePolicy
#from PyQt4.QtGui import QWidget, QSizePolicy
...
@@ -199,7 +200,7 @@ from enthought.traits.ui.api import TabularEditor
...
@@ -199,7 +200,7 @@ from enthought.traits.ui.api import TabularEditor
class
ClassificationColumn
(
ObjectColumn
):
class
ClassificationColumn
(
ObjectColumn
):
def
get_cell_color
(
self
,
object
):
def
get_cell_color
(
self
,
object
):
return
[
'light blue'
,
'
yellow
'
][
object
.
class_name
in
[
'Signal'
]]
return
[
'light blue'
,
'
light green
'
][
object
.
class_name
in
[
'Signal'
]]
#class CheckboxColumn(ObjectColumn):
#class CheckboxColumn(ObjectColumn):
#
#
...
@@ -653,7 +654,7 @@ class MelodicWindow(HasTraits):
...
@@ -653,7 +654,7 @@ class MelodicWindow(HasTraits):
self
.
colorbar
.
update_normal
(
d
)
self
.
colorbar
.
update_normal
(
d
)
if
self
.
ic_selected
.
class_name
in
'Signal'
:
if
self
.
ic_selected
.
class_name
in
'Signal'
:
self
.
image_axes
.
set_title
(
'Signal!'
,
bbox
=
{
'color'
:
'green'
,
'pad'
:
2
,
'width'
:
400
})
self
.
image_axes
.
set_title
(
self
.
ic_selected
.
class_name
,
bbox
=
{
'color'
:
'
light
green'
})
else
:
else
:
self
.
image_axes
.
set_title
(
self
.
ic_selected
.
class_name
)
self
.
image_axes
.
set_title
(
self
.
ic_selected
.
class_name
)
...
@@ -697,6 +698,7 @@ class MelodicWindow(HasTraits):
...
@@ -697,6 +698,7 @@ class MelodicWindow(HasTraits):
@
on_trait_change
(
'class_list'
)
@
on_trait_change
(
'class_list'
)
def
classListChanged
(
self
):
def
classListChanged
(
self
):
# print "Ding!"
# print "Ding!"
self
.
display
()
pass
pass
@
on_trait_change
(
'show_stats,ignore_blank_slices'
)
@
on_trait_change
(
'show_stats,ignore_blank_slices'
)
...
...
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