Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntVect: eq list #74

Open
ax3l opened this issue Sep 15, 2022 · 2 comments
Open

IntVect: eq list #74

ax3l opened this issue Sep 15, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@ax3l
Copy link
Member

ax3l commented Sep 15, 2022

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]
@ax3l ax3l added the enhancement New feature or request label Sep 15, 2022
@ax3l
Copy link
Member Author

ax3l commented Aug 2, 2023

This could help: implicit conversion

Same for the amrex::Vector classes and RealVect as we saw in the hackathon w/ @RevathiJambunathan @EZoni

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant