Stop spectra display from trying to scale to -inf

pull/13/head
Mark Jessop 2020-07-12 19:04:34 +09:30
rodzic c45699720f
commit cf9e67691b
3 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -1 +1 @@
__version__ = "0.1.7"
__version__ = "0.1.8"

Wyświetl plik

@ -443,10 +443,10 @@ def handle_fft_update(data):
_new_max = float((_old_max * (1 - _tc)) + (np.max(_data) * _tc))
# Store new max
widgets["spectrumPlotRange"][1] = _new_max
widgets["spectrumPlotRange"][1] = max(widgets["spectrumPlotRange"][0], _new_max)
widgets["spectrumPlot"].setYRange(
widgets["spectrumPlotRange"][0], min(0, _new_max) + 20
widgets["spectrumPlotRange"][0], widgets["spectrumPlotRange"][1] + 20
)
def handle_status_update(status):

Wyświetl plik

@ -1,6 +1,6 @@
[tool.poetry]
name = "horusgui"
version = "0.1.7"
version = "0.1.8"
description = ""
authors = ["Mark Jessop <vk5qi@rfhead.net>"]