diff options
Diffstat (limited to 'qolab/hardware/scope/rigolds1054z.py')
-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 """ |