diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-07-13 23:42:17 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-07-13 23:42:17 -0400 |
commit | 8f44ce0ff7824508dcbeee6ae3c38dc3940658de (patch) | |
tree | 6ee12a493346b9b68e72e3ad4d62214fab91f307 | |
parent | d5e771fa2bbe112411d6c45d3d55046eefc06307 (diff) | |
download | qolab-8f44ce0ff7824508dcbeee6ae3c38dc3940658de.tar.gz qolab-8f44ce0ff7824508dcbeee6ae3c38dc3940658de.zip |
move imports forward
-rw-r--r-- | examples/Bfield_driver.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/examples/Bfield_driver.py b/examples/Bfield_driver.py index 362524f..230dc3e 100644 --- a/examples/Bfield_driver.py +++ b/examples/Bfield_driver.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,12 @@ 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", +) + l = logging.getLogger("qolab.tsdb") l.setLevel(logging.INFO) logger = logging.getLogger("BfieldDriver") |