diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-07-14 12:55:30 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-07-14 12:55:30 -0400 |
commit | 51dac6bcc02fc645a23293fbd52cebdcc6c0b289 (patch) | |
tree | 1d6d60193fb78ff36918a4858279814f91fc68eb /examples | |
parent | 3e84f85e50d08d7c2175ebee22c34174b19e4922 (diff) | |
download | qolab-51dac6bcc02fc645a23293fbd52cebdcc6c0b289.tar.gz qolab-51dac6bcc02fc645a23293fbd52cebdcc6c0b289.zip |
move imports forward
Diffstat (limited to 'examples')
-rw-r--r-- | examples/eit_with_vcsel.py | 16 |
1 files 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") |