Skip to content

Commit ab1f800

Browse files
committed
remove test warnings
1 parent 1e88a14 commit ab1f800

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

src/aspire/utils/units.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ def wavelength_to_voltage(wavelength):
5353
:param wavelength: float, The electron wavelength in angstroms.
5454
:return: float, The electron voltage in kV.
5555
"""
56-
# Added to test CI warnings filter
57-
import warnings
58-
59-
warnings.warn("temporary user warning check", UserWarning, stacklevel=1)
6056
a = float(12.264259661581491)
6157
b = float(0.9784755917869367)
6258

tests/test_utils.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,6 @@ def test_gaussian_3d(indexing):
232232
G_y = np.sum(G, axis=(x, z)) / np.sum(G)
233233
G_z = np.sum(G, axis=(x, y)) / np.sum(G)
234234

235-
# Added to check CI config. Should fail on Dep warning
236-
np.row_stack(([1, 2], [3, 4]))
237-
238235
# Corresponding 1d gaussians
239236
peak_x = 1 / np.sqrt(2 * np.pi * sigma[0] ** 2)
240237
peak_y = 1 / np.sqrt(2 * np.pi * sigma[1] ** 2)
@@ -300,9 +297,6 @@ def test_check_pixel_size():
300297
with pytest.raises(ValueError, match="must be a scalar"):
301298
check_pixel_size(px_sizes_diff, px_sizes_same)
302299

303-
# Expected UserWarning should not error in CI
304-
assert not check_pixel_size(1.2, 1.3)
305-
306300

307301
def test_gaussian_scalar_param():
308302
L = 100

0 commit comments

Comments
 (0)