Esempio n. 1
0
def main():

    app = QtGui.QApplication(sys.argv)

    ws_server = WSServer()
    zmq_server = ZMQServer(8090)
    kernel = Kernel()
    kernel.add_server(ws_server)
    kernel.add_server(zmq_server)
    kernel.start()

    spines_table = data_adquisition.create_spines_table()
    dendrites_table = data_adquisition.create_dendrites_table(spines_table)
    Front.instance().get_method('TableSrv.expose_table')(spines_table)
    
    # TODO: Expose the spines_table through the TableSrv  

    dfilter = DynFilter('f_dendrites', dendrites_table)
    dselect = DynSelect('s_dendrites', dendrites_table)

    show_main_window = False
    if show_main_window:    
        main_window = MainWindow()
        main_window.show()
        view = main_window.list_view
    
        main_window.add_filter(dendrites_table, 'dendrite_id', dfilter)
        main_window.add_filter(dendrites_table, 'dendrite_type', dfilter)
    
        view.table = spines_table
        view.dfilter = dfilter
        view.dselect = dselect    

    app.exec_()
Esempio n. 2
0
    def init(self):
        '''
        This method loads the data in a table
        '''
        #morpho_table_name = "Histological features"
        #morpho_table = init_table(morpho_table_name, 'schema')
        #morpho_dselect = DynSelect('morpho_dselect', morpho_table, setop='AND')
        #Front.instance().get_method('TableSrv.expose_table')(morpho_table)
        #Front.instance().get_method('DynSelectSrv.expose_dselect')(morpho_dselect)

        #clinic_table_name = "Patients characteristics"
        #clinic_table = init_table(clinic_table_name, 'clinic_schema')
        #clinic_dselect = DynSelect('clinic_dselect', clinic_table, setop='AND')
        #Front.instance().get_method('TableSrv.expose_table')(clinic_table)
        #Front.instance().get_method('DynSelectSrv.expose_dselect')(clinic_dselect)

        joined_table_name = self.dataset_name
        joined_table = init_table(joined_table_name,
                                  self.config.data_dir,
                                  joined_table_name + '_schema')
        joined_dselect = DynSelect('joined_dselect', joined_table, setop='AND')
        Front.instance().get_method('TableSrv.expose_table')(joined_table)
        Front.instance().get_method('DynSelectSrv.expose_dselect')(joined_dselect)

        xlsx_exporter.expose_methods()
 #       dist_vis.expose_methods()
        describe_stats.expose_methods()

        return {
            #'morpho_table': morpho_table_name, 'morpho_selection': 'morpho_dselect',
            #'clinic_table': clinic_table_name, 'clinic_selection': 'clinic_dselect',
            'joined_table': joined_table_name, 'joined_selection': 'joined_dselect'}
Esempio n. 3
0
    def init(self):
        '''
        This method loads the data in a table
        '''
        table_name = 'm16_cing_1_9apical'
        table = init_table(table_name, 'schema')
        definition_dselect = DynSelect('definition_dselect', table, setop='AND')
        Front.instance().get_method('TableSrv.expose_table')(table)
        Front.instance().get_method('DynSelectSrv.expose_dselect')(definition_dselect)

        xlsx_exporter.expose_methods()
        dist_vis.expose_methods()

        return {'table': table_name}
Esempio n. 4
0
def expose_methods():
    Front.instance().add_method(export_dselect)
Esempio n. 5
0
def expose_methods():
    Front.instance().add_method(describe_stats)