Exemple #1
0
def test_05():
    """
    Particle scan, focus offset.
    """
    psf = MicroscopePSF()
    rv = numpy.arange(0.0, 1.01, 0.1)
    pv = numpy.arange(1.0, 3.01, 0.2)

    fast_rz = psf.gLZRParticleScan(rv, pv, zv=-2.0)
    slow_rz = psf.gLZRParticleScanSlow(rv, pv, zv=-2.0)

    assert numpy.allclose(fast_rz, slow_rz, rtol=1.0e-3, atol=1.0e-3)
Exemple #2
0
def test_04():
    """
    Particle scan.
    """
    psf = MicroscopePSF()
    rv = numpy.arange(0.0, 1.01, 0.1)
    pv = numpy.arange(0.0, 2.01, 0.1)

    fast_rz = psf.gLZRParticleScan(rv, pv)
    slow_rz = psf.gLZRParticleScanSlow(rv, pv)

    assert numpy.allclose(fast_rz, slow_rz, rtol=1.0e-4, atol=1.0e-4)