Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonw committed Nov 8, 2023
1 parent ece1206 commit 60b5972
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
1 change: 0 additions & 1 deletion funlib/geometry/freezable.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
class Freezable(object):

__isfrozen = False

def __setattr__(self, key, value):
Expand Down
7 changes: 2 additions & 5 deletions tests/test_coordinate.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


def test_constructor():

# construct from tuples, lists, and generators

assert Coordinate(0) == (0,)
Expand All @@ -21,7 +20,6 @@ def test_constructor():


def test_arithmetic():

a = Coordinate((1, 2, 3))
b = Coordinate((4, 5, 6))
c = Coordinate((7, 8))
Expand Down Expand Up @@ -80,12 +78,11 @@ def test_powers():
a = Coordinate(2, 3, 0)
b = Coordinate(2, 0, 1)

assert a ** b == (4, 1, 0)
assert a ** 2 == (4, 9, 0)
assert a**b == (4, 1, 0)
assert a**2 == (4, 9, 0)


def test_none():

a = Coordinate((None, 1, 2))
b = Coordinate((3, 4, None))

Expand Down
5 changes: 0 additions & 5 deletions tests/test_roi.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


def test_squeeze():

r = Roi((1, 2, 3), (4, 5, 6))
assert r.dims == 3
r = r.squeeze(1)
Expand All @@ -14,7 +13,6 @@ def test_squeeze():


def test_shape():

r = Roi((0,), (1,))
assert r.size == 1
assert r.empty is False
Expand Down Expand Up @@ -61,7 +59,6 @@ def test_shape():


def test_operators():

a = Roi((0, 0, 0), (100, 100, 100))
b = Roi((50, 50, 50), (100, 100, 100))

Expand Down Expand Up @@ -112,7 +109,6 @@ def test_operators():


def test_snap():

a = Roi((1,), (7,))

assert a.snap_to_grid(Coord(2), "grow") == Roi((0,), (8,))
Expand Down Expand Up @@ -140,7 +136,6 @@ def test_snap():


def test_arithmetic():

a = Roi((1, None), (7, None))

assert a + 1 == Roi((2, None), (7, None))
Expand Down

0 comments on commit 60b5972

Please sign in to comment.