Skip to content

Commit 7121c95

Browse files
committed
fix: Volume.evaluate_points
1 parent d075d35 commit 7121c95

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

siibra/volumes/volume.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,8 @@ def evaluate_points(
253253
raise NotImplementedError("Filtering of points by pure mesh volumes not yet implemented.")
254254

255255
# make sure the points are in the same physical space as this volume
256-
warped = (
257-
pointset.from_points([points]) if isinstance(points, point.Point) else points
258-
).warp(self.space)
256+
as_pointset = pointset.from_points([points]) if isinstance(points, point.Point) else points
257+
warped = as_pointset.warp(self.space)
259258
assert warped is not None, SpaceWarpingFailedError
260259

261260
# get the voxel array of this volume

0 commit comments

Comments
 (0)