Example #1
0
def test_similaritymatrixview():
    data = get_data()

    kwargs = {}
    kwargs['similarity_matrix'] = create_similarity_matrix(nclusters)
    kwargs['cluster_colors_full'] = data['cluster_colors_full']

    kwargs['operators'] = [
        lambda self: self.view.show_selection(5, 6),
        lambda self: (self.close()
                      if USERPREF['test_auto_close'] != False else None),
    ]

    # Show the view.
    show_view(SimilarityMatrixView, **kwargs)
def test_similaritymatrixview():
    data = get_data()
    
    kwargs = {}
    kwargs['similarity_matrix'] = create_similarity_matrix(nclusters)
    kwargs['cluster_colors_full'] = data['cluster_colors_full']
    
    kwargs['operators'] = [
        lambda self: self.view.show_selection(5, 6),
        lambda self: (self.close() 
            if USERPREF['test_auto_close'] != False else None),
    ]
    
    # Show the view.
    show_view(SimilarityMatrixView, **kwargs)
    
    
Example #3
0
def test_viewdata_similaritymatrixview_1():
    with Experiment('myexperiment', dir=DIRPATH) as exp:
        chgrp = exp.channel_groups[0]
        matrix = create_similarity_matrix(2)
        data = get_similaritymatrixview_data(exp, matrix=matrix)
        show_view(SimilarityMatrixView, **data)
Example #4
0
def test_viewdata_similaritymatrixview_1():
    with Experiment('myexperiment', dir=DIRPATH) as exp:
        chgrp = exp.channel_groups[0]
        matrix = create_similarity_matrix(2)
        data = get_similaritymatrixview_data(exp, matrix=matrix)
        show_view(SimilarityMatrixView, **data)