Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit e33ac95

Browse files
committed
hotfix: Using pandas functionality with an object that has been converted to numpy array
1 parent ea13706 commit e33ac95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conntility/connectivity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ def filter_with_function(self, filter_func, mask=None, vertex_properties=None, *
676676
else:
677677
mask = np.array(mask)
678678
passes_filter = np.ones(len(mask), dtype=bool)
679-
passes_filter[mask.values] = filter_func(df.loc[mask], **kwargs)
679+
passes_filter[mask] = filter_func(df.loc[mask], **kwargs)
680680
return self.subedges(passes_filter)
681681

682682
def default(self, new_default_property, copy=True):

0 commit comments

Comments
 (0)