Commit cd250a63 authored by rusty1s's avatar rusty1s
Browse files

typo

parent 801e5f1a
...@@ -27,7 +27,8 @@ def grid_cluster(position, size, batch=None, fake_nodes=False, offset=None): ...@@ -27,7 +27,8 @@ def grid_cluster(position, size, batch=None, fake_nodes=False, offset=None):
position = position - min position = position - min
else: else:
position = position + offset position = position + offset
assert position.min() >= 0, 'Offset resulting in negative positions' assert position.min() >= 0, (
'Passed offset resulting in unallowed negative positions')
# Compute cluster count for each dimension. # Compute cluster count for each dimension.
max = position.max(dim=0)[0] max = position.max(dim=0)[0]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment