Skip to content

Invalid import in hazard.base.py #632

@raphael-portmann

Description

@raphael-portmann

There is an invalid import in hazard.base.py of the develop branch which could be removed (see below)

     39 from rasterio.features import rasterize
     40 from rasterio.warp import reproject, Resampling, calculate_default_transform
---> 41 import sparse as sp
     42 from scipy import sparse
     43 import xarray as xr

this file:

import sparse as sp

and the code on line 726 would have to be changed from
sp.COO.from_numpy,
to
sparse.COO.from_numpy,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions