diff options
-rw-r--r-- | examples/grab_eit_shapes.py | 13 |
1 files changed, 6 insertions, 7 deletions
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") |