Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes when changing bin size #82

Open
fruitofgeorge opened this issue Jun 7, 2020 · 0 comments
Open

Crashes when changing bin size #82

fruitofgeorge opened this issue Jun 7, 2020 · 0 comments

Comments

@fruitofgeorge
Copy link

I managed to finally get this installed on macOS 10.13.6 (which was quite a feat in itself) but unfortunately it crashes quite a lot. Sometimes seemingly random but one reproducible method is by changing the bin size from the default 10kHz. Most often it will spit out this error:

Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/qspectrumanalyzer/plot.py", line 130, in update_plot
    self.curve.setData(data_storage.x, data_storage.y)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyqtgraph/graphicsItems/PlotDataItem.py", line 461, in setData
    self.updateItems()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyqtgraph/graphicsItems/PlotDataItem.py", line 487, in updateItems
    self.curve.setData(x=x, y=y, **curveArgs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyqtgraph/graphicsItems/PlotCurveItem.py", line 307, in setData
    self.updateData(*args, **kargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyqtgraph/graphicsItems/PlotCurveItem.py", line 353, in updateData
    raise Exception("X and Y arrays must be the same shape--got %s and %s." % (self.xData.shape, self.yData.shape))
Exception: X and Y arrays must be the same shape--got (3025,) and (2964,).
INFO: Total time: 11.775 s
Abort trap: 6

Do you have any guidance on what the program thinks is an acceptable bin size?
A couple other minor bothers is it doesn't retain any input settings and always defaults to FM radio spectrum, 0 gain, etc. And also the interval setting doesn't seem to produce a logical effect on the scan time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant