Skip to content

Inline operator supportΒ #101

@mdales

Description

@mdales

Currently Yirgacheffe overloads __add__ and __radd__ but not __iadd__ (and similarly for sub, mul, etc.). It might be nice to be able to write:

with yg.read_raster("blah.tif") as layer:
   layer *= 2
   layer.to_geotiff("doubled.tif")

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions