You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/usr/local/lib/nanovnasaver/nanovna-saver.py", line 26, in
from NanoVNASaver.main import main
File "/usr/local/lib/nanovnasaver/NanoVNASaver/main.py", line 36, in
from NanoVNASaver.NanoVNASaver import NanoVNASaver
File "/usr/local/lib/nanovnasaver/NanoVNASaver/NanoVNASaver.py", line 28, in
from .Windows import (
File "/usr/local/lib/nanovnasaver/NanoVNASaver/Windows/init.py", line 6, in
from .DisplaySettings import DisplaySettingsWindow
File "/usr/local/lib/nanovnasaver/NanoVNASaver/Windows/DisplaySettings.py", line 25, in
from NanoVNASaver.Charts.Chart import (
File "/usr/local/lib/nanovnasaver/NanoVNASaver/Charts/init.py", line 2, in
from .Frequency import FrequencyChart
File "/usr/local/lib/nanovnasaver/NanoVNASaver/Charts/Frequency.py", line 37, in
class FrequencyChart(Chart):
File "/usr/local/lib/nanovnasaver/NanoVNASaver/Charts/Frequency.py", line 453, in FrequencyChart
def _data_oob(self, data: list[Datapoint]) -> bool:
TypeError: 'type' object is not subscriptable
I don't know if this is sufficient, but it seems to clear the error so far:
Ubvuntu 20.04 python 3.8
With the May 29 2022 commit, I always get:
Traceback (most recent call last):
File "/usr/local/lib/nanovnasaver/nanovna-saver.py", line 26, in
from NanoVNASaver.main import main
File "/usr/local/lib/nanovnasaver/NanoVNASaver/main.py", line 36, in
from NanoVNASaver.NanoVNASaver import NanoVNASaver
File "/usr/local/lib/nanovnasaver/NanoVNASaver/NanoVNASaver.py", line 28, in
from .Windows import (
File "/usr/local/lib/nanovnasaver/NanoVNASaver/Windows/init.py", line 6, in
from .DisplaySettings import DisplaySettingsWindow
File "/usr/local/lib/nanovnasaver/NanoVNASaver/Windows/DisplaySettings.py", line 25, in
from NanoVNASaver.Charts.Chart import (
File "/usr/local/lib/nanovnasaver/NanoVNASaver/Charts/init.py", line 2, in
from .Frequency import FrequencyChart
File "/usr/local/lib/nanovnasaver/NanoVNASaver/Charts/Frequency.py", line 37, in
class FrequencyChart(Chart):
File "/usr/local/lib/nanovnasaver/NanoVNASaver/Charts/Frequency.py", line 453, in FrequencyChart
def _data_oob(self, data: list[Datapoint]) -> bool:
TypeError: 'type' object is not subscriptable
I don't know if this is sufficient, but it seems to clear the error so far:
--- ./NanoVNASaver/Charts/Frequency.py.orig 2022-05-29 10:40:50.000000000 -0600
+++ ./NanoVNASaver/Charts/Frequency.py 2022-05-30 10:39:48.863412359 -0600
@@ -450,7 +450,7 @@
self.drawDragbog(qp)
qp.end()
def _data_oob(self, data: list) -> bool:
return (data[0].freq > self.fstop or self.data[-1].freq < self.fstart)
def _check_frequency_boundaries(self, qp: QtGui.QPainter):
The text was updated successfully, but these errors were encountered: