aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/eit_with_vcsel.py16
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")