示例#1
0
 def test_node_info(self):
     my_connectome = connectome.generate_connectome(fib,
                                                    roi,
                                                    node_info=node_info)
     assert my_connectome.node[82]['name'] == 'Left-Amygdala'
     assert my_connectome.node[82]['region'] == 'subcortical'
     assert my_connectome.node[82]['hemisphere'] == 'left'
示例#2
0
 def test_can_set_clinical_info(self):
     test_info = dict( group='foo',
                       gender='F',
                       a_score=114.56,
                       b_score=5 )
     my_connectome = connectome.generate_connectome(fib, roi)
     my_connectome.set_info(test_info)
     assert my_connectome.get_info() == test_info
示例#3
0
 def test_can_set_clinical_info(self):
     test_info = dict(group='foo', gender='F', a_score=114.56, b_score=5)
     my_connectome = connectome.generate_connectome(fib, roi)
     my_connectome.set_info(test_info)
     assert my_connectome.get_info() == test_info
示例#4
0
 def test_can_generate_connectome_from_fibers_and_rois(self):
     assert connectome.generate_connectome(fib, roi) is not None
示例#5
0
 def test_node_info(self):
     my_connectome = connectome.generate_connectome(fib, roi, node_info=node_info)
     assert my_connectome.node[82]['name'] == 'Left-Amygdala'
     assert my_connectome.node[82]['region'] == 'subcortical'
     assert my_connectome.node[82]['hemisphere'] == 'left'
示例#6
0
 def test_can_generate_connectome_from_fibers_and_rois(self):
     assert connectome.generate_connectome(fib, roi) is not None