Commit 42d9a79f authored by Zhang, Chen's avatar Zhang, Chen
Browse files

cap version for some deps

parent e8d31d87
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -17,8 +17,8 @@ dependencies:
  - datashader
  - hvplot
  # GUI
  - panel>=0.14.2
  - param
  - panel>=0.14.2<1.3
  - param<2
  - pyvista
  # IO
  - dxchange
+2 −2
Original line number Diff line number Diff line
@@ -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
@@ -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)