kopia lustrzana https://github.com/projecthorus/horus-gui
Stop spectra display from trying to scale to -inf
rodzic
c45699720f
commit
cf9e67691b
|
@ -1 +1 @@
|
|||
__version__ = "0.1.7"
|
||||
__version__ = "0.1.8"
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[tool.poetry]
|
||||
name = "horusgui"
|
||||
version = "0.1.7"
|
||||
version = "0.1.8"
|
||||
description = ""
|
||||
authors = ["Mark Jessop <vk5qi@rfhead.net>"]
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue