Skip to content

IntVect: eq list #74

Open
Open
@ax3l

Description

@ax3l

I would like to do things like:

>       assert mfab.nGrowVect == [2, 2, 2]

Which needs to implement more overloads to IntVect's __eq__() it seems:

E       TypeError: __eq__(): incompatible function arguments. The following argument types are supported:
E           1. (self: amrex.amrex_pybind.IntVect, arg0: int) -> bool
E           2. (self: amrex.amrex_pybind.IntVect, arg0: amrex.amrex_pybind.IntVect) -> bool
E       
E       Invoked with: <amrex.IntVect (2,2,2)>, [2, 2, 2]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions