From 0cc421fbfc121dac474f1c0e1bd60124854140de Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Sun, 14 Jul 2024 13:02:20 -0400 Subject: move imports forward --- examples/grab_eit_shapes.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'examples') diff --git a/examples/grab_eit_shapes.py b/examples/grab_eit_shapes.py index 0c2b171..5546f00 100644 --- a/examples/grab_eit_shapes.py +++ b/examples/grab_eit_shapes.py @@ -1,17 +1,10 @@ import logging -# this should be done before justpy is called or log formatter does not work -logging.basicConfig( - format="%(asctime)s %(levelname)8s %(name)s: %(message)s", - datefmt="%m/%d/%Y %H:%M:%S", -) - # import justpy as jp import pyvisa import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt - import qolab.tsdb as tsdb import asyncio import time @@ -25,6 +18,12 @@ from qolab.feedback import PID from qolab.data import TraceSetSameX, TraceXY, Trace from qolab.hardware.i_server import I800 +# this should be done before justpy is called or log formatter does not work +logging.basicConfig( + format="%(asctime)s %(levelname)8s %(name)s: %(message)s", + datefmt="%m/%d/%Y %H:%M:%S", +) + tmplogger = logging.getLogger("qolab.gui.web") tmplogger.setLevel(logging.INFO) tmplogger = logging.getLogger("qolab.tsdb") -- cgit v1.2.3