diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-07-20 17:02:55 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-07-20 17:03:23 -0400 |
commit | 6a1d11f6e70ec8c0e67a3371e9417024ee1c2b4c (patch) | |
tree | e086ad1b25d318e4c537e84a7ce2b20459dd05bc | |
parent | 6730d0580d5dd92f9eff18b6d83867a074d9511b (diff) | |
download | qolab-6a1d11f6e70ec8c0e67a3371e9417024ee1c2b4c.tar.gz qolab-6a1d11f6e70ec8c0e67a3371e9417024ee1c2b4c.zip |
more changes to logging
-rw-r--r-- | qolab/hardware/scope/rigolds1054z.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qolab/hardware/scope/rigolds1054z.py b/qolab/hardware/scope/rigolds1054z.py index 34beaee..41f9fcc 100644 --- a/qolab/hardware/scope/rigolds1054z.py +++ b/qolab/hardware/scope/rigolds1054z.py @@ -200,13 +200,13 @@ class RigolDS1054z(ScopeSCPI): chunk_size=(chunk_size + 100), ) if len(wfRawChunk) == 0: - print("WARNING: Got empty chunk! Redoing.") + logger.info("Got empty chunk. Redoing.") continue # we need to repeat chunk read if len(wfRawChunk) != chunk_size: - print("Warning: Expected chunk with length" + + logger.info("Expected chunk with length" + f" {chunk_size} but got {len(wfRawChunk)}") - print(f"Warning: Current pointers are {strt=} {stp=} with {chunk_size=}") - print("Warning: Redoing, chunk reading.") + logger.info(f"Current pointers are {strt=} {stp=} with {chunk_size=}") + logger.info("Redoing, chunk reading.") continue # we need to repeat chunk read wfRaw[strt - 1 : stp] = wfRawChunk """ |