Closed gislfzhao closed 3 years ago
Hello @gislfzhao,
thank you for using pylandstats and raising this issue. I believe this is the same as #4 and #5. What are your versions of the numba
and transonic
packages?
Also, this comment might be of help: https://github.com/martibosch/pylandstats/issues/4#issuecomment-678748304
Best, Martí
Well I will be closing this since it seems to boil down to essentially #4 and #5 , but @gislfzhao do not hesitate to reopen if you find something new.
Best, Martí
Description
Describe what you were trying to get done. Tell us what happened, what went wrong, and what you expected to happen.
I am using the pylandstats library to solve the landscape index, and the following prompt appears after running.
C:\Users\GISzhao\AppData\Local\Programs\Python\Python36\python36.exe C:/Users/GISzhao/Desktop/MyGraduate/MyMaster/03_GeoSimulation_CA/code/temp.py WARNING: Module C:\Users\GISzhao\AppData\Local\Programs\Python\Python36\lib\site-packages\pylandstats\landscape.py has not been compiled for Transonic-Numba
I want to know what is the reason for this and how to solve it.
`from pylandstats import Landscape
tif_file = '../test/data/lucc2015.tif' landscape = Landscape(tif_file) df = landscape.compute_landscape_metrics_df() print(df) print(df.columns)` This is the code I am running.
Thank you.
What I Did