From 51dac6bcc02fc645a23293fbd52cebdcc6c0b289 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Sun, 14 Jul 2024 12:55:30 -0400 Subject: move imports forward --- examples/eit_with_vcsel.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/examples/eit_with_vcsel.py b/examples/eit_with_vcsel.py index 31727f0..800507b 100644 --- a/examples/eit_with_vcsel.py +++ b/examples/eit_with_vcsel.py @@ -1,19 +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 pyvisa import numpy as np import platform import time from tqdm import tqdm as pbar import matplotlib.pyplot as plt - - from qolab.hardware import BasicInstrument from qolab.data import TraceSetSameX, TraceXY, Trace from qolab.hardware.rf_generator import QOL_LMX2487 @@ -21,6 +12,13 @@ from qolab.hardware.daq import LabJackUE9 from qolab.hardware.power_supply.keysight_e3612a import KeysightE3612A import qolab.tsdb as tsdb +# 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.tsdb") tmplogger.setLevel(logging.INFO) logger = logging.getLogger("Magnetometer") -- cgit v1.2.3