コード例 #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)
コード例 #2
0
ファイル: test_beam.py プロジェクト: zhuligs/cctbx_project
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)
コード例 #3
0
def test_beam():
    image = str(Path(__file__).parent / "phi_scan_001.cbf")
    assert BeamFactory.imgCIF(image)
コード例 #4
0
def test_beam():
    dxtbx_dir = dxtbx.__path__[0]

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