Skip to content

Commit

Permalink
nblast_smart: make mask initialization use less memory
Browse files Browse the repository at this point in the history
  • Loading branch information
schlegelp committed Mar 28, 2022
1 parent b135f52 commit d656cb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion navis/nbl/nblast_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ def nblast_smart(query: Union[Dotprops, NeuronList],
# Sort such that the top hit is to the left
srt = np.argsort(scr.values, axis=1)[:, ::-1]
# Generate the mask
mask = pd.DataFrame(np.zeros(scr.shape), dtype=bool,
mask = pd.DataFrame(np.zeros(scr.shape, dtype=bool),
columns=scr.columns, index=scr.index)
_ = np.arange(mask.shape[0])
for N in range(t):
Expand Down

0 comments on commit d656cb7

Please sign in to comment.