aprict 0.0.33__tar.gz → 0.0.34.dev8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {aprict-0.0.33/src/aprict.egg-info → aprict-0.0.34.dev8}/PKG-INFO +9 -5
- {aprict-0.0.33 → aprict-0.0.34.dev8}/README.md +8 -4
- aprict-0.0.34.dev8/src/aprict/__init__.py +146 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/scripts/project_cbfp.py +5 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/version.py +1 -1
- {aprict-0.0.33 → aprict-0.0.34.dev8/src/aprict.egg-info}/PKG-INFO +9 -5
- aprict-0.0.33/src/aprict/__init__.py +0 -92
- {aprict-0.0.33 → aprict-0.0.34.dev8}/LICENSE.txt +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/LICENSE_GPLv3.txt +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/MANIFEST.in +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/pyproject.toml +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/setup.cfg +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/setup.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cb/__init__.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cb/_unused_old_fbp.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cb/flatpanel.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cb/noop_filter.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cb/ramp_filter.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cb/ramp_filter_cpu.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/__init__.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/_generate_cusrc.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/dtype_cacher.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/header_injection.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/kern_structs.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/ptx_cacher.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/FORBILD_volumes.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/__init__.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/base.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/config_cb_backproject.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/config_cb_project.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/config_cb_project_FORBILD.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/cu/FORBILD_Box.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/cu/FORBILD_ClipAxisSpec.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/cu/FORBILD_Cone.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/cu/FORBILD_Cone_x.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/cu/FORBILD_Cone_y.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/cu/FORBILD_Cone_z.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/cu/FORBILD_Cylinder.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/cu/FORBILD_Cylinder_x.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/cu/FORBILD_Cylinder_y.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/cu/FORBILD_Cylinder_z.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/cu/FORBILD_Ellipsoid.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/cu/FORBILD_Ellipsoid_free.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/cu/FORBILD_Ellipt_Cyl.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/cu/FORBILD_Ellipt_Cyl_x.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/cu/FORBILD_Ellipt_Cyl_y.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/cu/FORBILD_Ellipt_Cyl_z.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/cu/FORBILD_Shape.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/cu/FORBILD_Sphere.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/cu/__init__.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/geometry.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/test_subdir/__init__.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/cuda/structs/test_subdir/test_config.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/.gitignore +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/abdomen/AbdomenPhantom.pha +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/abdomen/AbdomenPhantom_fixed.pha +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/abdomen/TableOfTissues +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/abdomen/Wirbel.pha +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/custom_composite/Ribs.pha +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/custom_composite/Shoulders.pha +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/custom_composite/TableOfTissues +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/custom_composite/Vertebra.pha +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/custom_composite/part_01_hip.pha +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/custom_composite/part_02_abdomen.pha +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/custom_composite/part_03_thorax.pha +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/custom_composite/part_04_head.pha +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/custom_composite/part_05_jaw.pha +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/custom_other/rock_canister_01.pha +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/custom_other/rock_canister_01_cavities_1e5.pha +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/custom_other/unit_Cyl_z.pha +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/head/HeadPhantom.pha +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/head/TableOfTissues +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/hip/HipPhantom.pha +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/jaw/JawPhantom.pha +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/lungs/LungPhantom3Generations.pha +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/thorax/Ribs.pha +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/thorax/Shoulders.pha +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/thorax/TableOfTissues +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/thorax/ThoraxPhantom.pha +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/thorax/Vertebra.pha +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/README.txt +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/cusrc/CB_backproject.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/cusrc/CB_backproject_sharedmem.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/cusrc/CB_project_sharedmem.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/cusrc/CB_project_texture_chunked.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/cusrc/FORBILD_volumes.h +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/cusrc/base.h +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/cusrc/config_cb_backproject.h +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/cusrc/config_cb_project.h +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/cusrc/config_cb_project_FORBILD.h +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/cusrc/geometry.h +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/cusrc/get_bboxes_FORBILD.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/cusrc/ramlak_convolve.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/cusrc/sample_FORBILD_volumes.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/cusrc/test_kernel.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/cusrc/test_subdir/test_config.h +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/cusrc/texture_operations.cu +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/examples/__init__.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/examples/composite_human_sirt.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/examples/fan_beam_sirt.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/examples/helical_sirt.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/examples/lungs_sirt.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/examples/trajtest_A_sirt.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/examples/triangle_exp_fb.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/gbc/__init__.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/gbc/filters.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/gbc/weightinteg.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/image_view.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/iterators/__init__.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/iterators/landweber_vram.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/iterators/sirt_vram.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/lib/__init__.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/lib/argparse_tools.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/lib/bboxes_FORBILD.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/lib/click_tools.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/lib/empty_context_manager.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/lib/gpu_tools.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/lib/import_tools.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/lib/lds.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/lib/ne_tools.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/lib/ng_tools.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/lib/np_tools.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/lib/ome_zarr_tools.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/lib/process_pha_file.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/lib/sample_FORBILD.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/lib/texture_tools/__init__.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/lib/texture_tools/operations.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/lib/texture_tools/texture.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/liveplot.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/logtools/__init__.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/logtools/config.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/logtools/pbar.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/logtools/pbar_tqdm.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/logtools/rich_custombar.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/phantoms/FORBILD_phantoms.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/phantoms/__init__.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/ramp_kernels.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/scripts/__init__.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/scripts/cli.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/scripts/convert_npy_to_omezarr.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/scripts/convert_omezarr_to_npy.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/scripts/make_geometry_cone_cyl.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/scripts/make_geometry_fan_circ.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/scripts/neuroglance.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/scripts/recon_cbfp_cyl_fbp.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/scripts/recon_cbfp_cyl_gbc.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/scripts/recon_cbfp_landweber.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/tests/__init__.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/tests/cuda_kernels/__init__.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/tests/cuda_kernels/test_backproject_cb.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/tests/cuda_kernels/test_cusrc/__init__.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/tests/cuda_kernels/test_kernel_structs.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/tests/cuda_kernels/test_project_cb.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/tests/cuda_kernels/test_project_cb_FORBILD_phantoms.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/tests/cuda_kernels/test_project_cb_FORBILD_shapes.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/tests/test_FORBILD_lungs_construction.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/tests/test_volume.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/volume/__init__.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/volume/volume.py +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict.egg-info/SOURCES.txt +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict.egg-info/dependency_links.txt +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict.egg-info/entry_points.txt +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict.egg-info/requires.txt +0 -0
- {aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aprict
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.34.dev8
|
|
4
4
|
Summary: Tools to simulate and reconstruct XCT transmission data.
|
|
5
5
|
Author: Murdock Grewar
|
|
6
6
|
Author-email: Murdock Grewar <murdock.grewar@anu.edu.au>
|
|
@@ -39,10 +39,14 @@ Requires-Dist: neuroglancer>=2.41.0; extra == "gui"
|
|
|
39
39
|
Dynamic: author
|
|
40
40
|
Dynamic: license-file
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-

|
|
43
|
+
|
|
44
|
+
[](https://orcid.org/0000-0002-0015-8284)
|
|
45
|
+
[](https://doi.org/10.5281/zenodo.23632625)
|
|
46
|
+
[](https://pypi.org/project/aprict/)
|
|
47
|
+

|
|
45
48
|
[](https://www.repostatus.org/#wip)
|
|
49
|
+
|
|
46
50
|
<details open><summary><h1>About</h1></summary>
|
|
47
51
|
|
|
48
52
|
Description
|
|
@@ -52,7 +56,7 @@ Description
|
|
|
52
56
|
|
|
53
57
|
API documentation
|
|
54
58
|
---
|
|
55
|
-
The Python API documentation is limited and incomplete, but available in the `docs/` directory. The documentation for the latest release may also be hosted at [`
|
|
59
|
+
The Python API documentation is limited and incomplete, but available in the `docs/` directory. The documentation for the latest release may also be hosted at [`docs.aprict.au`](https://docs.aprict.au/).
|
|
56
60
|
|
|
57
61
|
Disclaimer
|
|
58
62
|
---
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-

|
|
2
|
+
|
|
3
|
+
[](https://orcid.org/0000-0002-0015-8284)
|
|
4
|
+
[](https://doi.org/10.5281/zenodo.23632625)
|
|
5
|
+
[](https://pypi.org/project/aprict/)
|
|
6
|
+

|
|
4
7
|
[](https://www.repostatus.org/#wip)
|
|
8
|
+
|
|
5
9
|
<details open><summary><h1>About</h1></summary>
|
|
6
10
|
|
|
7
11
|
Description
|
|
@@ -11,7 +15,7 @@ Description
|
|
|
11
15
|
|
|
12
16
|
API documentation
|
|
13
17
|
---
|
|
14
|
-
The Python API documentation is limited and incomplete, but available in the `docs/` directory. The documentation for the latest release may also be hosted at [`
|
|
18
|
+
The Python API documentation is limited and incomplete, but available in the `docs/` directory. The documentation for the latest release may also be hosted at [`docs.aprict.au`](https://docs.aprict.au/).
|
|
15
19
|
|
|
16
20
|
Disclaimer
|
|
17
21
|
---
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
# Copyright (C) 2026 Murdock Grewar
|
|
2
|
+
#
|
|
3
|
+
# This program is free software: you can redistribute it and/or modify
|
|
4
|
+
# it under the terms of the GNU General Public License as published by
|
|
5
|
+
# the Free Software Foundation, either version 3 of the License, or
|
|
6
|
+
# (at your option) any later version.
|
|
7
|
+
#
|
|
8
|
+
# This program is distributed in the hope that it will be useful,
|
|
9
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
+
# GNU General Public License for more details.
|
|
12
|
+
#
|
|
13
|
+
# You should have received a copy of the GNU General Public License
|
|
14
|
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
15
|
+
|
|
16
|
+
r"""
|
|
17
|
+
[](https://orcid.org/0000-0002-0015-8284)
|
|
18
|
+
[](https://doi.org/10.5281/zenodo.23632625)
|
|
19
|
+
[](https://pypi.org/project/aprict/)
|
|
20
|
+
[](https://github.com/murdock-grewar/aprict)
|
|
21
|
+
[](https://www.repostatus.org/#wip)
|
|
22
|
+
|
|
23
|
+
# What is `aprict`?
|
|
24
|
+
|
|
25
|
+
`aprict` is a Python module for simulating and reconstructing from flat-panel transmission X-ray experiments. In other words, it is a library for Cone-Beam Computed Tomography (CBCT).
|
|
26
|
+
|
|
27
|
+
## Features
|
|
28
|
+
|
|
29
|
+
`aprict` uses the GPU for all the heavy operations. The terminology 'in-core' and 'out-of-core' here refers to whether the relevant data must fit entirely within the GPU VRAM (in-core) or not (out-of-core). Most operations have no minimum RAM requirement in practice. Included features as of `aprict==0.0.33`:
|
|
30
|
+
- Out-of-core calculation of projection data for arbitrary flat-panel geometries. Supports voxelised volumes and (almost) any FORBILD phantom. (Exact line integrals in all cases.)
|
|
31
|
+
- Out-of-core analytic reconstruction for special geometries.
|
|
32
|
+
- In-core iterative reconstruction for arbitrary geometries.
|
|
33
|
+
|
|
34
|
+
## Installation
|
|
35
|
+
|
|
36
|
+
You can install `aprict` with `pip install aprict[gui]`.
|
|
37
|
+
|
|
38
|
+
## Quickstart
|
|
39
|
+
|
|
40
|
+
Follow this three-step process to get a quick flavour of the capabilities of this package. Run these commands in a shell such as `bash`, from a fresh directory, with an active Python environment with `aprict[gui]` installed. Note that all units of distance are measured in millimeters.
|
|
41
|
+
|
|
42
|
+
1. Create a `projgeom.json` file encoding the experiment geometry:
|
|
43
|
+
```bash
|
|
44
|
+
aprict make-geom cone-cyl \
|
|
45
|
+
--num 1000 \
|
|
46
|
+
--type GOLDEN_THETA \
|
|
47
|
+
--R 250 --L-minus-R 250 --h 700 \
|
|
48
|
+
--detwid 600 --dethei 600 \
|
|
49
|
+
--pixwid-isoc 0.25 --pixhei-isoc 0.25 \
|
|
50
|
+
--output projgeom.json
|
|
51
|
+
```
|
|
52
|
+
2. Create the linearised projection data in directory `projs/`, based on the geometry encoded in `projgeom.json`:
|
|
53
|
+
```bash
|
|
54
|
+
aprict project cbfp \
|
|
55
|
+
--geom projgeom.json \
|
|
56
|
+
--phantom-preset HEAD \
|
|
57
|
+
--ssu 3 --ssv 3 \
|
|
58
|
+
--output projs \
|
|
59
|
+
--plot-mode PYQTGRAPH # available if `gui` extra installed
|
|
60
|
+
```
|
|
61
|
+
3. Create a tomographic reconstruction in directory `recon_gbc/`, from the geometry and simulated data. Uses the Global Backprojection-Convolution (GBC) algorithm:
|
|
62
|
+
```bash
|
|
63
|
+
aprict recon gbc-cone-cyl \
|
|
64
|
+
--geom projs/projgeom.json \
|
|
65
|
+
--projs projs/projs.npy \
|
|
66
|
+
--voxwid 0.5 \
|
|
67
|
+
--volshape '(525,525,525)' \
|
|
68
|
+
--alg GREWAR \
|
|
69
|
+
--f1 1.2 --f2 6 --n 9 --eps 1e-9 \
|
|
70
|
+
--plotmin 0 --plotmax 0.0368 \
|
|
71
|
+
--output recon_gbc \
|
|
72
|
+
--plot-mode PYQTGRAPH # available if `gui` extra installed
|
|
73
|
+
```
|
|
74
|
+
PNG previews of the reconstruction are available at `recon_gbc/output/*.png`. The full reconstruction is available at `recon_gbc/output/recon.npy`.
|
|
75
|
+
|
|
76
|
+
Optionally, the reconstruction can be converted to `OME-Zarr 5.0` format with:
|
|
77
|
+
```bash
|
|
78
|
+
aprict convert npy_to_omez \
|
|
79
|
+
--input recon_gbc/output/recon.npy \
|
|
80
|
+
--output ./recon.zarr \
|
|
81
|
+
--voxwid-mm 0.5 \
|
|
82
|
+
--ver V0_5
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
# Recommended use
|
|
86
|
+
|
|
87
|
+
## Commandline interface (CLI)
|
|
88
|
+
|
|
89
|
+
The entry point for the main commandline interface is the shell command `aprict`. This shell command should be available on `$PATH` if the module is installed in the current environment. All shell commands are self-documented:
|
|
90
|
+
```bash
|
|
91
|
+
$ aprict --help
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Python API
|
|
95
|
+
### Recommended import pattern
|
|
96
|
+
|
|
97
|
+
The recommended import pattern for this module is
|
|
98
|
+
```python
|
|
99
|
+
import aprict
|
|
100
|
+
from aprict.cb import flatpanel as cbfp
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Main components of the Python API
|
|
104
|
+
|
|
105
|
+
The main components of the end-user Python API are:
|
|
106
|
+
- [`aprict.FBVolume`](aprict/volume.html#FBVolume) - an attenuating volume defined in FORBILD format (alias for `aprict.volume.FBVolume`)
|
|
107
|
+
- [`aprict.Volume`](aprict/volume.html#Volume) - an attenuating volume defined in voxelised format (alias for `aprict.volume.Volume`)
|
|
108
|
+
- `aprict.cb.flatpanel` - a namespace for objects and functions applying to cone-beam imaging geometries
|
|
109
|
+
|
|
110
|
+
### Examples using the Python API
|
|
111
|
+
|
|
112
|
+
For examples of Python API usage, see `aprict.examples`.
|
|
113
|
+
|
|
114
|
+
""" # ruff: ignore[ambiguous-unicode-character-docstring, missing-blank-line-after-summary, missing-trailing-period]
|
|
115
|
+
|
|
116
|
+
# If we are just running the build script, then I don't want to initialise anything,
|
|
117
|
+
# because the imports fail because it hasn't built yet.
|
|
118
|
+
|
|
119
|
+
import os as _os
|
|
120
|
+
|
|
121
|
+
if _os.environ.get("APRICT_BUILDMODE", ""): # ruff: ignore[non-empty-init-module]
|
|
122
|
+
pass
|
|
123
|
+
else:
|
|
124
|
+
# Ensure that numexpr max threads is set to the number of logical cores before importing numexpr either directly or indirectly through other imports.
|
|
125
|
+
_nethreads_max_env = _os.environ.get("NUMEXPR_MAX_THREADS", None)
|
|
126
|
+
if _nethreads_max_env is None:
|
|
127
|
+
_os.environ["NUMEXPR_MAX_THREADS"] = str(_os.process_cpu_count())
|
|
128
|
+
|
|
129
|
+
del _os
|
|
130
|
+
from . import cb as cb
|
|
131
|
+
from . import image_view as imview
|
|
132
|
+
from . import iterators, lib, phantoms, volume
|
|
133
|
+
from .cuda import structs as dtypes
|
|
134
|
+
from .volume import FBVolume as FBVolume
|
|
135
|
+
from .volume import Volume as Volume
|
|
136
|
+
|
|
137
|
+
# Note that __all__ determines what's listed in the documentation page.
|
|
138
|
+
__all__ = [
|
|
139
|
+
"cb",
|
|
140
|
+
"dtypes",
|
|
141
|
+
"imview",
|
|
142
|
+
"iterators",
|
|
143
|
+
"lib",
|
|
144
|
+
"phantoms",
|
|
145
|
+
"volume",
|
|
146
|
+
]
|
|
@@ -33,6 +33,7 @@ from aprict.lib import click_tools, ne_tools
|
|
|
33
33
|
|
|
34
34
|
from .. import FBVolume, imview, logtools, phantoms
|
|
35
35
|
from ..cb import flatpanel as cbfp
|
|
36
|
+
from ..lib import import_tools
|
|
36
37
|
|
|
37
38
|
_mod_avail_imview = imview._pyqtgraph_installed # ruff: ignore[private-member-access]
|
|
38
39
|
|
|
@@ -264,6 +265,10 @@ def main_from_args(args: types.SimpleNamespace) -> None: # ruff: ignore[complex
|
|
|
264
265
|
##########################################################
|
|
265
266
|
##################### Logging setup ######################
|
|
266
267
|
##########################################################
|
|
268
|
+
# Purge any existing root logger handlers.
|
|
269
|
+
# This step is necessary as a hotfix to prevent badly-behaved imports from adding
|
|
270
|
+
# their own root logger handlers.
|
|
271
|
+
import_tools.purge_root_loggers()
|
|
267
272
|
# Prevent root logger from squashing child loggers from outputting
|
|
268
273
|
logging.root.setLevel(logging.NOTSET)
|
|
269
274
|
# Create custom logger object
|
|
@@ -16,4 +16,4 @@
|
|
|
16
16
|
# This file is read from by 'setup.py', from '__init__.py', and also by a git hook which increments the dev number each time a commit is made on the 'dev' branch. There should only be one line in the file which begins with "version".
|
|
17
17
|
"""File which stores the current version number of this module."""
|
|
18
18
|
|
|
19
|
-
version = "0.0.
|
|
19
|
+
version = "0.0.34.dev8"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aprict
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.34.dev8
|
|
4
4
|
Summary: Tools to simulate and reconstruct XCT transmission data.
|
|
5
5
|
Author: Murdock Grewar
|
|
6
6
|
Author-email: Murdock Grewar <murdock.grewar@anu.edu.au>
|
|
@@ -39,10 +39,14 @@ Requires-Dist: neuroglancer>=2.41.0; extra == "gui"
|
|
|
39
39
|
Dynamic: author
|
|
40
40
|
Dynamic: license-file
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-

|
|
43
|
+
|
|
44
|
+
[](https://orcid.org/0000-0002-0015-8284)
|
|
45
|
+
[](https://doi.org/10.5281/zenodo.23632625)
|
|
46
|
+
[](https://pypi.org/project/aprict/)
|
|
47
|
+

|
|
45
48
|
[](https://www.repostatus.org/#wip)
|
|
49
|
+
|
|
46
50
|
<details open><summary><h1>About</h1></summary>
|
|
47
51
|
|
|
48
52
|
Description
|
|
@@ -52,7 +56,7 @@ Description
|
|
|
52
56
|
|
|
53
57
|
API documentation
|
|
54
58
|
---
|
|
55
|
-
The Python API documentation is limited and incomplete, but available in the `docs/` directory. The documentation for the latest release may also be hosted at [`
|
|
59
|
+
The Python API documentation is limited and incomplete, but available in the `docs/` directory. The documentation for the latest release may also be hosted at [`docs.aprict.au`](https://docs.aprict.au/).
|
|
56
60
|
|
|
57
61
|
Disclaimer
|
|
58
62
|
---
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
# Copyright (C) 2026 Murdock Grewar
|
|
2
|
-
#
|
|
3
|
-
# This program is free software: you can redistribute it and/or modify
|
|
4
|
-
# it under the terms of the GNU General Public License as published by
|
|
5
|
-
# the Free Software Foundation, either version 3 of the License, or
|
|
6
|
-
# (at your option) any later version.
|
|
7
|
-
#
|
|
8
|
-
# This program is distributed in the hope that it will be useful,
|
|
9
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
-
# GNU General Public License for more details.
|
|
12
|
-
#
|
|
13
|
-
# You should have received a copy of the GNU General Public License
|
|
14
|
-
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
15
|
-
|
|
16
|
-
"""
|
|
17
|
-
[](https://orcid.org/0000-0002-0015-8284)
|
|
18
|
-
[](https://doi.org/10.5281/zenodo.23632625)
|
|
19
|
-

|
|
20
|
-
[](https://www.repostatus.org/#wip)
|
|
21
|
-
|
|
22
|
-
`aprict` is a Python module and commandline program for simulating flat-panel transmission X-ray experiments.
|
|
23
|
-
|
|
24
|
-
Recommended import pattern
|
|
25
|
-
--
|
|
26
|
-
|
|
27
|
-
The recommended import pattern for this module is
|
|
28
|
-
```python
|
|
29
|
-
import aprict
|
|
30
|
-
from aprict.cb import flatpanel as cbfp
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
Main components
|
|
34
|
-
--
|
|
35
|
-
|
|
36
|
-
The main components of the end-user Python API are:
|
|
37
|
-
- [`aprict.FBVolume`](aprict/volume.html#FBVolume) - an attenuating volume defined in FORBILD format
|
|
38
|
-
- [`aprict.Volume`](aprict/volume.html#Volume) - an attenuating volume defined in voxelised format
|
|
39
|
-
- `aprict.cb.flatpanel` - a namespace for objects and functions applying to cone-beam imaging geometries
|
|
40
|
-
|
|
41
|
-
Examples
|
|
42
|
-
--
|
|
43
|
-
|
|
44
|
-
For examples of Python API usage, see `aprict.examples`.
|
|
45
|
-
|
|
46
|
-
Commandline interface
|
|
47
|
-
--
|
|
48
|
-
|
|
49
|
-
The entry point for the main commandline interface is the shell command `aprict`. This shell command should be available on `$PATH` if the module is installed in the current environment. All shell commands are self-documented:
|
|
50
|
-
```bash
|
|
51
|
-
$ aprict --help
|
|
52
|
-
```
|
|
53
|
-
""" # ruff: ignore[ambiguous-unicode-character-docstring, blank-lines-between-header-and-content, mismatched-section-underline-length, missing-blank-line-after-summary, missing-trailing-period]
|
|
54
|
-
|
|
55
|
-
# If we are just running the build script, then I don't want to initialise anything,
|
|
56
|
-
# because the imports fail because it hasn't built yet.
|
|
57
|
-
|
|
58
|
-
import os as _os
|
|
59
|
-
|
|
60
|
-
if _os.environ.get("APRICT_BUILDMODE", ""): # ruff: ignore[non-empty-init-module]
|
|
61
|
-
pass
|
|
62
|
-
else:
|
|
63
|
-
# Ensure that numexpr max threads is set to the number of logical cores before importing numexpr either directly or indirectly through other imports.
|
|
64
|
-
_nethreads_max_env = _os.environ.get("NUMEXPR_MAX_THREADS", None)
|
|
65
|
-
if _nethreads_max_env is None:
|
|
66
|
-
_os.environ["NUMEXPR_MAX_THREADS"] = str(_os.process_cpu_count())
|
|
67
|
-
|
|
68
|
-
del _os
|
|
69
|
-
from . import cb as cb
|
|
70
|
-
from . import image_view as imview
|
|
71
|
-
from . import iterators, lib, phantoms, volume
|
|
72
|
-
from .cuda import structs as dtypes
|
|
73
|
-
from .volume import FBVolume as FBVolume
|
|
74
|
-
|
|
75
|
-
FBVolume.__doc__ = "@private\nAn alias to aprict.volume.FBVolume" # Hide from pdoc documentation of this module
|
|
76
|
-
from .volume import Volume as Volume
|
|
77
|
-
|
|
78
|
-
Volume.__doc__ = "@private\nAn alias to aprict.volume.Volume" # Hide from pdoc documentation of this module
|
|
79
|
-
|
|
80
|
-
# Note that __all__ determines what's listed in the documentation page.
|
|
81
|
-
# So, I'm selecting only those parts which I want to be documented on the main doc page here.
|
|
82
|
-
__all__ = [
|
|
83
|
-
"FBVolume", # documented in aprict.volume
|
|
84
|
-
"Volume", # documented in aprict.volume
|
|
85
|
-
"cb",
|
|
86
|
-
"dtypes",
|
|
87
|
-
"imview",
|
|
88
|
-
"iterators",
|
|
89
|
-
"lib",
|
|
90
|
-
"phantoms",
|
|
91
|
-
"volume",
|
|
92
|
-
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/abdomen/AbdomenPhantom_fixed.pha
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/custom_composite/TableOfTissues
RENAMED
|
File without changes
|
|
File without changes
|
{aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/custom_composite/part_01_hip.pha
RENAMED
|
File without changes
|
{aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/custom_composite/part_02_abdomen.pha
RENAMED
|
File without changes
|
{aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/custom_composite/part_03_thorax.pha
RENAMED
|
File without changes
|
{aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/custom_composite/part_04_head.pha
RENAMED
|
File without changes
|
{aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/custom_composite/part_05_jaw.pha
RENAMED
|
File without changes
|
{aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/custom_other/rock_canister_01.pha
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/data/FORBILD/lungs/LungPhantom3Generations.pha
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aprict-0.0.33 → aprict-0.0.34.dev8}/src/aprict/tests/cuda_kernels/test_project_cb_FORBILD_shapes.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|