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

MultiFab.__len__() #407

Merged
merged 1 commit into from
Jan 29, 2025
Merged

MultiFab.__len__() #407

merged 1 commit into from
Jan 29, 2025

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Jan 25, 2025

We already have .size and we can iterate the FabArray, so we should support len(mf), too.

Seen in ECP-WarpX/WarpX#4817

@ax3l ax3l added the enhancement New feature or request label Jan 25, 2025
@ax3l ax3l requested a review from RemiLehe January 25, 2025 01:25
ax3l added a commit to RemiLehe/WarpX that referenced this pull request Jan 25, 2025
Until we add `__len__` via
AMReX-Codes/pyamrex#407
We already have `.size` and we can iterate the `FabArray`, so
we should support `len(mf)`, too.
@ax3l ax3l enabled auto-merge (squash) January 29, 2025 06:17
@ax3l ax3l merged commit b3d97c8 into AMReX-Codes:development Jan 29, 2025
17 checks passed
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

Successfully merging this pull request may close these issues.

1 participant