diff options
Diffstat (limited to 'examples/Bfield_driver.py')
-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") |