Administrator approval is now required for registering new accounts. If you are registering a new account, and are external to the University, please ask the repository owner to contact ServiceLine to request your account be approved. Repository owners must include the newly registered email address, and specific repository in the request for approval.

Commit 0ec7d24a authored by Ed Rogers's avatar Ed Rogers
Browse files

Fix unnecessary warnings

parent 25ff75c4
......@@ -10,5 +10,14 @@
<inspection_tool class="PyUnresolvedReferencesInspection" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoredIdentifiers">
<option value="PyQt5.QtCore.pyqtSignal.emit" />
<option value="matplotlib.container" />
<option value="PyQt5.QtCore.pyqtSignal.connect" />
\ No newline at end of file
......@@ -59,6 +59,7 @@ class HearingMplCanvas(FigureCanvas):
self.plot_result(HearingTest(parent.library, self))
def plot_result(self, result: HearingTest):
# TODO turn display upside down
inds = np.arange(0, result.freqs.size)
self.ul_bar =, result.upper_bounds - self.baseline,
......@@ -72,6 +73,7 @@ class HearingMplCanvas(FigureCanvas):
labels.insert(0, '')
self.axes.set_ylim(self.baseline, result.upper_lim - self.baseline)
# noinspection PyTypeChecker
def update_result(self, result: HearingTest) -> None:
......@@ -101,6 +103,7 @@ class HearingMplCanvas(FigureCanvas):
class HearingTestThread(QtCore.QThread):
played_sound = QtCore.pyqtSignal(float, float, float)
aborted = QtCore.pyqtSignal()
finished = QtCore.pyqtSignal()
def __init__(self, test: HearingTest):
......@@ -120,6 +123,7 @@ class HearingTestThread(QtCore.QThread):
self.played_sound.emit(freq, volume, played_time)
class TestWindow(QMainWindow):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment