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

Argument check in EdgeIterator inner constructor #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vlc1
Copy link

@vlc1 vlc1 commented May 10, 2024

The current inner constructor for EdgeIterator throws an error when the inner field is empty:

julia> inner = CartesianIndices((0,));

julia> outer = CartesianIndices((1,));

julia> EdgeIterator(outer, inner)
ERROR: DimensionMismatch: CartesianIndices((0,)) must be in the interior of CartesianIndices((1,))

Fix calls issubset instead.

empty inner and/or outer fields.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant