| 5 | |
| 6 | @pytest.fixture |
| 7 | def 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 | |
| 20 | def test_create_run(algorithm_config): |