Skip to content
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

Simplified local relief model crashing #19

Closed
Grozic-D opened this issue May 11, 2023 · 3 comments
Closed

Simplified local relief model crashing #19

Grozic-D opened this issue May 11, 2023 · 3 comments

Comments

@Grozic-D
Copy link

Traceback (most recent call last):
File "C:\Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\rvt-qgis\processing_provider\rvt_slrm.py", line 148, in processAlgorithm
visualization_arr = rvt.vis.slrm(dem=dem_arr, radius_cell=radius, ve_factor=ve_factor, no_data=no_data)
File "C:\Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\rvt-qgis\rvt\vis.py", line 443, in slrm
dem_mean_filter = mean_filter(dem=dem, kernel_radius=radius_cell)
File "C:\Users/User/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\rvt-qgis\rvt\vis.py", line 383, in mean_filter
dem_i_nr_pixels = integral_image(dem_i_nr_pixels, np.int)
File "C:\OSGeo4W\apps\Python39\lib\site-packages\numpy_init_.py", line 284, in getattr
raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'int'

@NejcCoz
Copy link
Contributor

NejcCoz commented May 17, 2023

Thanks for letting us know. It seems there is a deprecation issue when using newer versions of numpy. We are working on an update which will be released in the next couple of days.

While waiting for the release please try using an older version of QGIS. For example, the function works fine on QGIS 3.22.15, which is using the numpy version 1.20.2

@NejcCoz
Copy link
Contributor

NejcCoz commented May 23, 2023

The error has been fixed and we have released the update for the plugin (now version 0.9.5).

@Grozic-D Please upgrade your plugin to the latest version.

I am closing the issue, but please let us know if the error persists.

Many thanks, Nejc

@NejcCoz NejcCoz closed this as completed May 23, 2023
@Grozic-D
Copy link
Author

Grozic-D commented May 23, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants