Hi @YaoTingYao,
During testing of the updated UDef-ARP-Plugin, I came across an error during the allocation step: An error occurred during processing: PandasArray must be 1-dimensional. This error occurred specifically where a 2D raster array was passed into pandas searchsorted (in the calculate_density functions). This error could have occurred because of a pandas version mismatch in my QGIS python environment. My version is 2.3.3
To resolve the issue, I modified the searshsorted call with a NumPy-based flatten/search/reshape pattern. See here
Hi @YaoTingYao,
During testing of the updated UDef-ARP-Plugin, I came across an error during the allocation step:
An error occurred during processing: PandasArray must be 1-dimensional. This error occurred specifically where a 2D raster array was passed into pandas searchsorted (in the calculate_density functions). This error could have occurred because of a pandas version mismatch in my QGIS python environment. My version is2.3.3To resolve the issue, I modified the searshsorted call with a NumPy-based flatten/search/reshape pattern. See here