Skip to content

Raster.set_mask() raise error if data not loaded #637

Open
@rhugonnet

Description

@rhugonnet

A while ago we changed the behaviour to implicit loading everywhere in the package, instead of error raising: If .data needs to be called, it's loaded in memory by default without message.
However set_mask() still raises an error if the data is not loaded, which escaped us somehow:

raise AttributeError("self.data must be loaded first, with e.g. self.load()")

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions