Skip to content

Allocation module fix (density map step) #70

Description

@ESimonson95

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions