Loading environment.yml +2 −2 Original line number Diff line number Diff line Loading @@ -17,8 +17,8 @@ dependencies: - datashader - hvplot # GUI - panel>=0.14.2 - param - panel>=0.14.2<1.3 - param<2 - pyvista # IO - dxchange Loading tests/unit/backend/diagnostics/test_tilt.py +2 −2 Original line number Diff line number Diff line Loading @@ -284,7 +284,7 @@ def test_apply_tilt_correction(): def test_tilt_correction(): # error_0: incorrect dimension with pytest.raises(TypeError): with pytest.raises(ValueError): tilt_correction(arrays=np.arange(10), tilt=1.0) # make synthetic data size = 100 Loading @@ -296,7 +296,7 @@ def test_tilt_correction(): # verify np.testing.assert_allclose(projs_corrected, projs_ref) # case 1a: null with the progress bar projs_corrected = tilt_correction(arrays=projs_ref, rot_angles=omegas, tqdm_class=Tqdm()) projs_corrected = tilt_correction(arrays=projs_ref, rot_angles=omegas) np.testing.assert_allclose(projs_corrected, projs_ref) # case 2: small angle tilt tilt_inplane = np.radians(0.5) Loading Loading
environment.yml +2 −2 Original line number Diff line number Diff line Loading @@ -17,8 +17,8 @@ dependencies: - datashader - hvplot # GUI - panel>=0.14.2 - param - panel>=0.14.2<1.3 - param<2 - pyvista # IO - dxchange Loading
tests/unit/backend/diagnostics/test_tilt.py +2 −2 Original line number Diff line number Diff line Loading @@ -284,7 +284,7 @@ def test_apply_tilt_correction(): def test_tilt_correction(): # error_0: incorrect dimension with pytest.raises(TypeError): with pytest.raises(ValueError): tilt_correction(arrays=np.arange(10), tilt=1.0) # make synthetic data size = 100 Loading @@ -296,7 +296,7 @@ def test_tilt_correction(): # verify np.testing.assert_allclose(projs_corrected, projs_ref) # case 1a: null with the progress bar projs_corrected = tilt_correction(arrays=projs_ref, rot_angles=omegas, tqdm_class=Tqdm()) projs_corrected = tilt_correction(arrays=projs_ref, rot_angles=omegas) np.testing.assert_allclose(projs_corrected, projs_ref) # case 2: small angle tilt tilt_inplane = np.radians(0.5) Loading