aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-14 13:02:20 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-14 13:02:20 -0400
commit0cc421fbfc121dac474f1c0e1bd60124854140de (patch)
treec1ec4c0d5a44b50b47131251069372c65a8eb0ee
parent93d463511162bb22acb67948d8b7e6f7a8960be8 (diff)
downloadqolab-0cc421fbfc121dac474f1c0e1bd60124854140de.tar.gz
qolab-0cc421fbfc121dac474f1c0e1bd60124854140de.zip
move imports forward
-rw-r--r--examples/grab_eit_shapes.py13
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")