Пример #1
0
        def cluster_manual(ctx, path, channel_group=None, clustering=None):
            """Launch the Kwik GUI on a Kwik file."""

            # Create a `phy.log` log file with DEBUG level.
            _add_log_file(op.join(op.dirname(path), 'phy.log'))

            create_app()
            _run_cmd('_run(path, channel_group, clustering)', ctx, globals(),
                     locals())
Пример #2
0
        def cluster_manual(ctx, path, channel_group=None, clustering=None):
            """Launch the Kwik GUI on a Kwik file."""

            # Create a `phy.log` log file with DEBUG level.
            _add_log_file(op.join(op.dirname(path), 'phy.log'))

            create_app()
            _run_cmd('_run(path, channel_group, clustering)',
                     ctx, globals(), locals())
Пример #3
0
        def gui(ctx, data_path, **kwargs):
            """Launch the NEO GUI on a NEO readable file."""

            # Create a `phy.log` log file with DEBUG level.
            _add_log_file(op.join(op.dirname(data_path), 'phy.log'))

            create_app()

            _run_cmd('_run(data_path, **kwargs)', ctx, globals(), locals())
Пример #4
0
        def gui(ctx, params_path):
            """Launch the Template GUI on a params.py file."""

            # Create a `phy.log` log file with DEBUG level.
            _add_log_file(op.join(op.dirname(params_path), 'phy.log'))

            create_app()

            params = _read_python(params_path)
            params['dtype'] = np.dtype(params['dtype'])

            _run_cmd('_run(params)', ctx, globals(), locals())
Пример #5
0
        def cluster_manual(ctx, params_path):
            """Launch the Template GUI on a params.py file."""

            # Create a `phy.log` log file with DEBUG level.
            _add_log_file(op.join(op.dirname(params_path), 'phy.log'))

            create_app()

            params = _read_python(params_path)
            params['dtype'] = np.dtype(params['dtype'])

            _run_cmd('_run(params)', ctx, globals(), locals())
Пример #6
0
        def cluster_manual(ctx, params_path):
            """Launch the Template GUI on a params.py file."""
            # Create the Qt application.
            create_app()

            params = _read_python(params_path)
            params['dtype'] = np.dtype(params['dtype'])

            controller = TemplateController(**params)
            gui = controller.create_gui()

            gui.show()

            _run_cmd('run_app()', ctx, globals(), locals())

            gui.close()
            del gui
Пример #7
0
        def cluster_manual(ctx, params_path):
            """Launch the Template GUI on a params.py file."""
            # Create the Qt application.
            create_app()

            params = _read_python(params_path)
            params['dtype'] = np.dtype(params['dtype'])

            controller = TemplateController(**params)
            gui = controller.create_gui()

            gui.show()

            _run_cmd('run_app()', ctx, globals(), locals())

            gui.close()
            del gui