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
Add in code at each relevant stage which checks that the user inputs are as expected to avoid errors. Also notices, warnings and errors to push to the user to make the process clearer.
Work out how to push messages to the QGIS console
Add most important messages
Simstock running
Simstock finished/failed
Initial setup success/fail
Check types and formatting of input attribute table
Report which E+ model failed if so so that user can fix issues
Supress the idd warning that keeps coming up - these warnings can confuse the user that something has gone wrong
Replace or complement Python raised errors with QGIS ones - can use 'return' to exit a function without raising a Python error or using sys.exit() (the latter exits the entire QGIS session)
Catch if user has not yet performed the initial setup and provide a useful message instructing them to do so
The text was updated successfully, but these errors were encountered:
Using return, the code can be stopped when an exception occurs without actually raising an exception (which displays badly in QGIS). More exceptions need to be replaced with this.
Add in code at each relevant stage which checks that the user inputs are as expected to avoid errors. Also notices, warnings and errors to push to the user to make the process clearer.
The text was updated successfully, but these errors were encountered: