Skip to content

Switch to ASTRA direct_FP3D/BP3D interface - #2134

Merged
gfardell merged 7 commits into
TomographicImaging:masterfrom
wjp:astra_direct_fpbp
Apr 10, 2026
Merged

Switch to ASTRA direct_FP3D/BP3D interface#2134
gfardell merged 7 commits into
TomographicImaging:masterfrom
wjp:astra_direct_fpbp

Conversation

@wjp

@wjp wjp commented Apr 9, 2025

Copy link
Copy Markdown
Contributor

Description

Switch the Astra wrapper to use Astra's direct_FP3D and direct_BP3D functions for 3D Astra geometries. These functions provide a more concise interface and avoid unnecessary data copies.

This interface is supported from Astra 2.0. Starting from Astra 2.3, these functions also transparently accept DLPack tensors (including torch cpu/cuda tensors).

Example Usage

All unit tests pass for me. This is a result from the CIL PyTorch integration hackathon, and has therefore only seen limited further testing.

@gfardell

Copy link
Copy Markdown
Member

This was waiting for us to update our supported ASTRA versions. I think we have now, so it should be easy to update and include. Thank you for the contribution @wjp, are you happy for me top take to over and make the changes needed for CIL?

@wjp

wjp commented Feb 24, 2026

Copy link
Copy Markdown
Contributor Author

Hi Gemma, certainly!

@gfardell gfardell added the community-contribution Community-submitted pull requests from contributors outside the core team. label Apr 2, 2026
@gfardell
gfardell merged commit 25c1ac8 into TomographicImaging:master Apr 10, 2026
@github-project-automation github-project-automation Bot moved this from Todo to Done in CIL work Apr 10, 2026
@lauramurgatroyd lauramurgatroyd moved this from Done to Done & Reflected in CIL work Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Community-submitted pull requests from contributors outside the core team.

Projects

Status: Done & Reflected

Development

Successfully merging this pull request may close these issues.

3 participants