GIS4WRF / gis4wrf

QGIS toolkit 🧰 for pre- and post-processing 🔨, visualizing 🔍, and running simulations 💻 in the Weather Research and Forecasting (WRF) model 🌀
https://gis4wrf.github.io
MIT License
159 stars 36 forks source link

New Bug and its Fix related to float conversion in python 3.10 and PYQt5 in UBUNTUbuntu 22.04 #244

Open mcassiani opened 1 year ago

mcassiani commented 1 year ago

Describe the bug

Gis4WRF will not open windows (e.g. configuration files ) because there is no more automatic conversion between float and integer. The fix is: Ddit file "dialog_nml_editor.py", search for it in your GIS4WRF (QGIS) installation directory for example ~/.local/share/QGIS/QGIS3/profiles/default/python/plugins/gis4wrf/plugin/ui/

replace lines 32 and 48 with

    self.resize(int(w * 0.7), int(h * 0.6))       

    schema_browser.setMaximumWidth(int(self.width() * 0.3))

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

System Information (please complete the following information):

Additional context Add any other context about the problem here.

mjroth commented 1 year ago

Also applicable to plug/ui/dialog_custom_met_dataset.py with the same fix pattern:

self.setMinimumSize(int(w * 0.25), int(h * 0.35))
letmaik commented 1 year ago

PR please :)

mjroth commented 1 year ago

Done :)