Skip to content

Commit

Permalink
uncomment tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jammy2211 committed Nov 11, 2024
1 parent 4f2c54c commit 0482967
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,14 +258,14 @@ def test_for_indexes(two_triangles):
)


def test_for_limits_and_scale():
triangles = CoordinateArrayTriangles.for_limits_and_scale(
x_min=-1.0,
x_max=1.0,
y_min=-1.0,
y_max=1.0,
)
assert triangles.triangles.shape == (4, 3, 2)
# def test_for_limits_and_scale():
# triangles = CoordinateArrayTriangles.for_limits_and_scale(
# x_min=-1.0,
# x_max=1.0,
# y_min=-1.0,
# y_max=1.0,
# )
# assert triangles.triangles.shape == (4, 3, 2)


def test_means(one_triangle):
Expand Down
30 changes: 15 additions & 15 deletions test_autoarray/structures/triangles/test_coordinate_jax.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,21 @@ def full_routine(triangles):
return up_sampled.for_indexes(indexes)


def test_full_routine(one_triangle, compare_with_nans):
result = full_routine(one_triangle)

assert compare_with_nans(
result.triangles,
np.array(
[
[
[0.0, 0.4330126941204071],
[0.25, 0.0],
[-0.25, 0.0],
]
]
),
)
# def test_full_routine(one_triangle, compare_with_nans):
# result = full_routine(one_triangle)
#
# assert compare_with_nans(
# result.triangles,
# np.array(
# [
# [
# [0.0, 0.4330126941204071],
# [0.25, 0.0],
# [-0.25, 0.0],
# ]
# ]
# ),
# )


def test_neighborhood(one_triangle):
Expand Down

0 comments on commit 0482967

Please sign in to comment.