MCPcopy Create free account
hub / github.com/astra-toolbox/astra-toolbox / algorithm_config

Function algorithm_config

tests/python/unit/test_algorithm_module.py:7–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6@pytest.fixture
7def algorithm_config():
8 proj_geom = astra.create_proj_geom('parallel3d', 1.0, 1.0, 20, 20, np.linspace(0, 1, 30))
9 vol_geom = astra.create_vol_geom(10, 10, 10)
10 proj_data_id = astra.data3d.create('-sino', proj_geom)
11 vol_data_id = astra.data3d.create('-vol', vol_geom)
12 config = astra.astra_dict('FP3D_CUDA')
13 config['ProjectionDataId'] = proj_data_id
14 config['VolumeDataId'] = vol_data_id
15 yield config
16 astra.data3d.delete(proj_data_id)
17 astra.data3d.delete(vol_data_id)
18
19
20def test_create_run(algorithm_config):

Callers

nothing calls this directly

Calls 1

createMethod · 0.80

Tested by

no test coverage detected