Skip to content

Commit d21d058

Browse files
committed
run ruff again
1 parent 2207e94 commit d21d058

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/test_links/test_links.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ def check_ordering(output, axis):
2323
assert np.all(np.diff(output, axis=axis) > 0), f"is not ordered along specified axis: {axis}."
2424
for i in range(output.ndim):
2525
if i != axis % output.ndim:
26-
assert not np.all(
27-
np.diff(output, axis=i) > 0
28-
), f"is ordered along axis which is not meant to be ordered: {i}."
26+
assert not np.all(np.diff(output, axis=i) > 0), (
27+
f"is ordered along axis which is not meant to be ordered: {i}."
28+
)
2929

3030

3131
@pytest.mark.parametrize("axis", [0, 1, 2])

tests/test_networks/test_point_inference_network/test_point_inference_network.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ def test_save_and_load(tmp_path, point_inference_network, random_samples, random
4444

4545
for key_outer in out1.keys():
4646
for key_inner in out1[key_outer].keys():
47-
assert keras.ops.all(
48-
keras.ops.isclose(out1[key_outer][key_inner], out2[key_outer][key_inner])
49-
), "Output of original and loaded model differs significantly."
47+
assert keras.ops.all(keras.ops.isclose(out1[key_outer][key_inner], out2[key_outer][key_inner])), (
48+
"Output of original and loaded model differs significantly."
49+
)
5050

5151

5252
def test_copy_unequal(point_inference_network, random_samples, random_conditions):

0 commit comments

Comments
 (0)