From a46d3ff3663e3b8bb677d55973b61934d91464f7 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 22 May 2016 10:22:29 -0700 Subject: [PATCH] browser: remove unnecessary loop.call_soon --- artiq/frontend/artiq_browser.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/artiq/frontend/artiq_browser.py b/artiq/frontend/artiq_browser.py index 145ef157c..f026f236c 100755 --- a/artiq/frontend/artiq_browser.py +++ b/artiq/frontend/artiq_browser.py @@ -5,7 +5,6 @@ import asyncio import atexit import os import logging -from functools import partial from PyQt5 import QtCore, QtGui, QtWidgets from quamash import QEventLoop @@ -69,14 +68,14 @@ def main(): # initialize application args = get_argparser().parse_args() - log_sub = models.LocalModelManager(log.Model) - init_log(args, log_sub) - app = QtWidgets.QApplication(["ARTIQ Browser"]) loop = QEventLoop(app) asyncio.set_event_loop(loop) atexit.register(loop.close) - loop.call_soon(partial(log_sub.init, [])) + + log_sub = models.LocalModelManager(log.Model) + init_log(args, log_sub) + log_sub.init([]) smgr = state.StateManager(args.db_file)