Skip to content

make merging cells faster#1433

Open
Turu-Tamas wants to merge 2 commits into
MouseLand:mainfrom
Turu-Tamas:main
Open

make merging cells faster#1433
Turu-Tamas wants to merge 2 commits into
MouseLand:mainfrom
Turu-Tamas:main

Conversation

@Turu-Tamas
Copy link
Copy Markdown

The previous check for wether cells were touching:

touching = np.logical_and((ar0[:, np.newaxis] - ar1) < 3,
                          (ac0[:, np.newaxis] - ac1) < 3).sum()

This was wrong because of missing np.abs() calls and also slow, because it computes two large matrices.
Maybe related to #1148

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