diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-13 00:20:49 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-13 00:21:41 -0400 |
commit | 96a8cca1483e636da438b7496dc5db8f355028a7 (patch) | |
tree | 5daa1a891765111b200f8d61102cbe7912849455 | |
parent | 4879c57b697b1c804971f8bd4abc3cea5530f2b8 (diff) | |
download | qolab-96a8cca1483e636da438b7496dc5db8f355028a7.tar.gz qolab-96a8cca1483e636da438b7496dc5db8f355028a7.zip |
funcGenerator preload PyQtGraph QtCore method as a fallback mechanism
-rw-r--r-- | funcGenerator.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/funcGenerator.py b/funcGenerator.py index fdd56a5..caccacc 100644 --- a/funcGenerator.py +++ b/funcGenerator.py @@ -2,6 +2,11 @@ import time # For sleep, clock, time and perf_counter from datetime import datetime, timedelta import numpy as np +try: + from pyqtgraph.Qt import QtCore +except: + pass + class SinGen: def __init__(self, ampl=1, offset=0, phase=0, sweeper=None): self.ampl = ampl |