Esempio n. 1
0
def test_beam():
    """A test class for the beam class."""

    import libtbx.load_env
    import os

    dxtbx_dir = libtbx.env.dist_path("dxtbx")

    image = os.path.join(dxtbx_dir, "tests", "phi_scan_001.cbf")
    cbf = BeamFactory.imgCIF(image)
Esempio n. 2
0
def test_beam():
    '''A test class for the beam class.'''

    import libtbx.load_env
    import os

    dxtbx_dir = libtbx.env.dist_path('dxtbx')

    image = os.path.join(dxtbx_dir, 'tests', 'phi_scan_001.cbf')
    cbf = BeamFactory.imgCIF(image)
Esempio n. 3
0
def test_beam():
    image = str(Path(__file__).parent / "phi_scan_001.cbf")
    assert BeamFactory.imgCIF(image)
def test_beam():
    dxtbx_dir = dxtbx.__path__[0]

    image = os.path.join(dxtbx_dir, "tests", "phi_scan_001.cbf")
    assert BeamFactory.imgCIF(image)