-
Notifications
You must be signed in to change notification settings - Fork 16
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
LQf Python error #304
Comments
Were you able to go through the London tutorial without any errors? https://umep-docs.readthedocs.io/projects/tutorial/en/latest/Tutorials/LQF.html#lqf |
Hi, thank you for your kind reply. We could go through the London tutorial without any errors, indicating the LQf tool worked successfully.
dailyTemperature_2015_Shanghai.zip
|
Does you python suggested fix work? I.e. did you try it? |
The bug
We ran the LQF processor with local data("China Shanghai") following its annual (https://umep-docs.readthedocs.io/en/latest/OtherManuals/LQF_Manual.html#lqf-manual) . However, it failed.
addQuotes(x): return "'" + x + "'" : type error .
Then we change the source python file to addQuotes(x): return "'" + str(x) + "'".
Exception: The LQF database contains no weekday building cycles for: {NULL}
However, the input database contains "China_Shanghai" in both WeeklyBuildingCylcles and World table. Additionally, we have tried it on another computer with QGIS Version 3.10.13, but also got the same error.
The log and the data have been attached below. We have used the LQf processor on QGIS2 version based on those data in 2018 and it succeeded.
Is there anything wrong with the processor or our data?
Desktop:
C:/Users/ax/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\UMEP\SUEWSPrepare/Modules
D:/OSGeo4W64/apps/qgis-ltr/./python
C:/Users/ax/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/ax/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
D:/OSGeo4W64/apps/qgis-ltr/./python/plugins
D:\OSGeo4W64\apps\Python37
D:\OSGeo4W64\apps\Python37\Scripts
D:\OSGeo4W64\bin\python37.zip
D:\OSGeo4W64\apps\Python37\DLLs
D:\OSGeo4W64\apps\Python37\lib
D:\OSGeo4W64\bin
C:\Users\ax\AppData\Roaming\Python\Python37\site-packages
D:\OSGeo4W64\apps\Python37\lib\site-packages
D:\OSGeo4W64\apps\Python37\lib\site-packages\win32
D:\OSGeo4W64\apps\Python37\lib\site-packages\win32\lib
D:\OSGeo4W64\apps\Python37\lib\site-packages\Pythonwin
C:/Users/ax/AppData/Roaming/QGIS/QGIS3\profiles\default/python
Screenshots
When press the button Run model, an error occurs below as logs.
Logs
Data
Since GitHub didn't support uploading our filetype, the dataset online link is: https://cloud.tsinghua.edu.cn/d/0bf54aea37da46589226/
The zip file is :
input.zip
It includes the LQFDatabase_V1-1.sqlite and Shanghai Pop shapefile,
The text was updated successfully, but these errors were encountered: