Skip to content

Commit

Permalink
black reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonw committed Jun 13, 2024
1 parent b229e60 commit 185b1f0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion gunpowder/nodes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@
from .zarr_source import ZarrSource
from .zarr_write import ZarrWrite
from .gp_array_source import ArraySource as GPArraySource
from .gp_graph_source import GraphSource as GPGraphSource
from .gp_graph_source import GraphSource as GPGraphSource
1 change: 0 additions & 1 deletion gunpowder/nodes/gp_array_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ def provide(self, request):
else:
outputs[self.key] = copy.deepcopy(self.array.crop(request[self.key].roi))
return outputs

12 changes: 5 additions & 7 deletions gunpowder/nodes/random_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,13 +459,11 @@ def __select_random_location_with_points(

# count all points inside the shifted ROI
points = self.__get_points_in_roi(request_points_roi.shift(random_shift))
assert point in points, (
"Requested batch to contain point %s, but got points "
"%s"
% (
point,
points,
)
assert (
point in points
), "Requested batch to contain point %s, but got points " "%s" % (
point,
points,
)

return random_shift
Expand Down
2 changes: 1 addition & 1 deletion tests/cases/random_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def test_output():
),
b: ArraySpec(
roi=Roi(batch[random_shift_key].data, (20, 20, 20))
)
),
}
)
)
Expand Down

0 comments on commit 185b1f0

Please sign in to comment.