Skip to content

updates to TomoPhantom plugin to use v3.0#2287

Draft
paskino wants to merge 5 commits intoTomographicImaging:masterfrom
paskino:update_tomophantom_plugin
Draft

updates to TomoPhantom plugin to use v3.0#2287
paskino wants to merge 5 commits intoTomographicImaging:masterfrom
paskino:update_tomophantom_plugin

Conversation

@paskino
Copy link
Contributor

@paskino paskino commented Feb 10, 2026

Description

Update to use TomoPhantom v3.0 from httomo channel.
This is now not linked to any specific version of Python and NumPy as it uses ctypes instead of Cython.

Depends on:

Example Usage

No change in the user interface.

Contribution Notes

  • The content of this Pull Request (the Contribution) is intentionally submitted for inclusion in CIL (the Work) under the terms and conditions of the Apache-2.0 License
  • I confirm that the contribution does not violate any intellectual property rights of third parties

Changes

Testing you performed

Please add any demo scripts to https://github.com/TomographicImaging/CIL-Demos/tree/main/misc

Unittests on local Linux installation. Tested the following and it works as expected and as in the CIL-Demos.

from cil.plugins import TomoPhantom as cilTomoPhantom
from cil.framework import ImageGeometry

n = 256
ig = ImageGeometry(voxel_num_x=n, 
                   voxel_num_y=n, 
                   voxel_size_x=2/n, 
                   voxel_size_y=2/n)
print(ig)
#%%
phantom2D = cilTomoPhantom.get_ImageData(num_model=1, geometry=ig)


#%%
from cil.utilities.display import show2D

show2D(phantom2D)

Related issues/links

Checklist

  • I have performed a self-review of my code
  • I have added docstrings in line with the guidance in the developer guide
  • I have updated the relevant documentation
  • I have implemented unit tests that cover any new or modified functionality
  • CHANGELOG.md has been updated with any functionality change
  • Request review from all relevant developers

@paskino paskino force-pushed the update_tomophantom_plugin branch from a63847a to 2b2dab8 Compare February 10, 2026 16:32
@paskino paskino added this to CIL work Feb 10, 2026
@github-project-automation github-project-automation bot moved this to Todo in CIL work Feb 10, 2026
@paskino paskino moved this from Todo to In Progress in CIL work Feb 10, 2026
@paskino paskino force-pushed the update_tomophantom_plugin branch from 15a82ff to a090253 Compare February 10, 2026 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

CIL channel tomophantom - updating to latest version.

1 participant