Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- Bug fixes:
- `CentreOfRotationCorrector.image_sharpness` data is now correctly smoothed to reduce aliasing artefacts and improve robustness. (#2202)
- `PaganinProcessor` now correctly applies scaling with magnification for cone-beam geometry (#2225)
- `cilacc` path lookup no longer broken for editable installations
Comment thread
JeppeKlitgaard marked this conversation as resolved.
Outdated
- Dependencies:
- olefile and dxchange are optional dependencies, instead of required (#2209)
- improve `tqdm` notebook support (#2241)
Expand Down
5 changes: 3 additions & 2 deletions Wrappers/Python/cil/framework/cilacc.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
# CIL Developers, listed at: https://github.com/TomographicImaging/CIL/blob/master/NOTICE.txt
# Joshua DM Hellier (University of Manchester) [refactorer]
import ctypes
from pathlib import Path
from importlib.metadata import distribution

try:
cilacc_path = next((Path(__file__).parent.parent / 'lib').resolve().glob("*cilacc.*"))
dist = distribution("cil").locate_file("cil/lib")
cilacc_path = next(dist.glob("*cilacc.*"))
except StopIteration:
raise FileNotFoundError("cilacc library not found")
cilacc = ctypes.cdll.LoadLibrary(str(cilacc_path))