Skip to content

Commit d39dca0

Browse files
committed
Fix failing tests
1 parent 2c8ecdf commit d39dca0

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/aspire/commands/orient3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
help="Path to output STAR file relative to data folder",
2424
)
2525
@click.option(
26-
"--pixel_size", default=1, type=float, help="Pixel size of images in STAR file"
26+
"--pixel_size", default=None, type=float, help="Pixel size of images in STAR file"
2727
)
2828
@click.option(
2929
"--max_rows",

tests/test_relion_source.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ def test_pixel_size(caplog):
8989

9090
# Check user provided pixel size.
9191
pix_size = 1.234
92-
src = RelionSource(starfile_im_pix_size, pixel_size=pix_size)
92+
src = RelionSource(starfile_no_pix_size, pixel_size=pix_size)
9393
np.testing.assert_equal(src.pixel_size, pix_size)
9494

9595
# Check we raise if pixel_size not provided and not found in metadata.
96-
with pytest.raises(ValueError, match="`pixel_size` not found in metadata"):
96+
with pytest.raises(ValueError, match="No pixel size found in metadata"):
9797
src = RelionSource(starfile_no_pix_size)
9898

9999
# Check we warn if both provided and mismatched.

0 commit comments

Comments
 (0)