Skip to content

Commit 33eb087

Browse files
Jammy2211Jammy2211
authored andcommitted
black
1 parent b4f1853 commit 33eb087

File tree

5 files changed

+191
-151
lines changed

5 files changed

+191
-151
lines changed

autoarray/structures/triangles/array.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ def __repr__(self):
4949

5050
@classmethod
5151
def for_limits_and_scale(
52-
cls,
53-
y_min: float,
54-
y_max: float,
55-
x_min: float,
56-
x_max: float,
57-
scale: float,
58-
max_containing_size=MAX_CONTAINING_SIZE,
52+
cls,
53+
y_min: float,
54+
y_max: float,
55+
x_min: float,
56+
x_max: float,
57+
scale: float,
58+
max_containing_size=MAX_CONTAINING_SIZE,
5959
) -> "AbstractTriangles":
6060
height = scale * HEIGHT_FACTOR
6161

@@ -120,9 +120,9 @@ def add_vertex(v):
120120

121121
@classmethod
122122
def for_grid(
123-
cls,
124-
grid: Grid2D,
125-
**kwargs,
123+
cls,
124+
grid: Grid2D,
125+
**kwargs,
126126
) -> "AbstractTriangles":
127127
"""
128128
Create a grid of equilateral triangles from a regular grid.
@@ -384,7 +384,6 @@ def tree_unflatten(cls, aux_data, children):
384384
)
385385

386386

387-
388387
def select_and_handle_invalid(
389388
data: jnp.ndarray,
390389
indices: jnp.ndarray,

autoarray/structures/triangles/coordinate_array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,4 +326,4 @@ def means(self):
326326

327327
@property
328328
def area(self):
329-
return (3**0.5 / 4 * self.side_length**2) * len(self)
329+
return (3**0.5 / 4 * self.side_length**2) * len(self)

test_autoarray/structures/triangles/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def triangles():
5656
),
5757
)
5858

59+
5960
@pytest.fixture
6061
def one_triangle():
6162
return CoordinateArrayTriangles(

0 commit comments

Comments
 (0)