sharppy / SHARPpy

Sounding/Hodograph Analysis and Research Program in Python
https://sharppy.github.io/SHARPpy/index.html
Other
216 stars 112 forks source link

Fix preferences window problem #225

Closed skovic closed 1 year ago

skovic commented 2 years ago

This PR fixes the problem when the Preferences window fails to open while running the latest code from the master branch (Issue #224).

In the existing code, the where() call is actually returning a tuple of arrays. When idx1 is set to the first element, it is actually being set to the first element of the tuple which is an array. This array is then passed to setCurrentIndex() which is expecting an integer.

The code has been updated as follows:

wblumberg commented 1 year ago

We got this fixed from another contributor. Thank you for contributing!!