Skip to content

Raise exceptions instead of using assert #366

Open
@bouweandela

Description

@bouweandela

There are assert statements in various places, e.g.
https://github.com/SciTools-incubator/iris-esmf-regrid/blob/fdd2051dfff050b18c356a2b4277426e74415a61/esmf_regrid/schemes.py#L185-L186

For applications and users of this library, it would be nice to replace those with exceptions with a message explaining the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status

      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions