-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support
RayTransform
custom backends (#1540)
* Simplify adjoint method * Make RayTransform operators independent from their implementations * move __future__ import to beginning * Keep interface of RayTransform.impl the same, fix lowercasing * Share cache with adjoint * Fix self.__impl initialization * Style changes, change ValueError into TypeError * Remove RayTransformImplBase * Remove RayTransformBase; RayBackProjection becomes Operator * Move _call logic into backend for potential optimization * Remove backends from __all__, update imports * Bring `RayBackProjection` class inline in `RayTransform.adjoint` * Fix linear=True kwarg in `RayBackProjection` * Decorate RayTransform backend calls with `_add_default_complex_impl` * Fix import * Use `impl_type.__name__` as a return value for custom types * Add `geometry` with @Property * Make `_check_impl` static * Change class names of implementations * Change `reco_space` into `vol_space` and formatting * Change `reco_space` to `vol_space` * Fix `self` in function call * Fix complex spaces, and fix `out` argument * Add properties for `vol_space` and `proj_space` to implementation classes * Add docstrings * Update test to include complex adjoint of `RayTransform` * Make `_IMPL_STR2TYPE` public as `RAY_TRAFO_IMPLS` * Do not reassign to `out` when `out` is not None * Some formatting updates - Opening and closing parens on separate lines if line needs split - No more backslash line continuation - Sorted imports - Removal of remaining references to `DiscreteLp` * Update of README.md in tomo subpackage * Copyright notice and functool.wraps in backend utils * Fix failing import in skimage_radon.py * Change of words * Docstring extended with use case * Removed _ALL_IMPLS, enhanced exception messages, allow duck-typing `impl` string. * Import sorting order corrected * Renamed `_check_impl` and `create_impl`. Simplified docstrings. * Whitespace changes * Turn MD syntax in docstring to rst Co-authored-by: Holger Kohr <ho.kohr@zoho.com>
- Loading branch information
1 parent
282ef23
commit 6fba0ca
Showing
9 changed files
with
743 additions
and
670 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.