Skip to content

Commit d366be1

Browse files
authored
Merge branch 'master' into shrink_volume
2 parents cb6e148 + f3612d7 commit d366be1

File tree

14 files changed

+535
-47
lines changed

14 files changed

+535
-47
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ jobs:
138138
mamba-version: "*"
139139
channels: conda-forge
140140
conda-remove-defaults: "true"
141-
- run: conda install boa conda-verify
141+
- run: conda install boa
142142
- name: conda build
143143
run: >
144144
conda mambabuild -c conda-forge -c https://tomography.stfc.ac.uk/conda --override-channels --python=${{ matrix.python-version }}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/build*
22
__pycache__/
3-
/Wrappers/Python/cil/version.py
43
/Wrappers/Python/cil-*.dist-info/
54
/Wrappers/Python/cil/include/
65
/Wrappers/Python/cil/lib/

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
- Bug fixes:
55
- `CentreOfRotationCorrector.image_sharpness` data is now correctly smoothed to reduce aliasing artefacts and improve robustness. (#2202)
66
- `PaganinProcessor` now correctly applies scaling with magnification for cone-beam geometry (#2225)
7+
- `cilacc` path lookup no longer broken for editable installations (#2257)
8+
- update `version.py` to use `importlib` & fix tagless installation #2255 (#2269)
79
- Dependencies:
810
- olefile and dxchange are optional dependencies, instead of required (#2209)
911
- improve `tqdm` notebook support (#2241)

NOTICE.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ Francis M Watson (2025) - 3
8181
Hussam Alhassan (2025) - 1
8282
Adam Doherty (2025) - 5
8383
Evan Kiely (2025) - 10
84+
Jeppe Klitgaard (2026) - 2
8485

8586
CIL Advisory Board:
8687
Llion Evans - 9

Wrappers/Python/cil/framework/cilacc.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
# CIL Developers, listed at: https://github.com/TomographicImaging/CIL/blob/master/NOTICE.txt
1818
# Joshua DM Hellier (University of Manchester) [refactorer]
1919
import ctypes
20-
from pathlib import Path
20+
from importlib.metadata import distribution
2121

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

Wrappers/Python/cil/version.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import importlib.metadata
2+
from packaging.version import Version
3+
version = importlib.metadata.version("cil")
4+
5+
__v = Version(version)
6+
major, minor, patch = __v.major, __v.minor, __v.micro
7+
commit_hash = "" if __v.local is None else __v.local.split(".", 1)[0]
8+
num_commit = __v.dev or 9_999

docs/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ web:
2525
@$(JEKYLLBUILD) -s "$(JEKYLLSRCDIR)" $(JEKYLLOPTS)
2626
@ls "$(JEKYLLSRCDIR)"/*.md | xargs -II basename I .md | xargs -II rm -rf "$(BUILDDIR)/I"
2727
@rm -rf "$(BUILDDIR)/assets"
28+
@rm -rf "$(BUILDDIR)/publications"
2829
@mv _site/* "$(BUILDDIR)/"
2930
dirhtml:
3031
@rm -rf "$(BUILDDIR)/$(BUILDSUBDIR)"

docs/mkdemos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
]
2222

2323
NOTEBOOKS_advanced_links = [
24-
"https://github.com/TomographicImaging/CIL-Demos/raw/main/misc/callback_demonstration.ipynb"
24+
"https://raw.githubusercontent.com/TomographicImaging/CIL-Demos/refs/heads/main/demos/4_Deep_Dives/01_callbacks.ipynb"
2525
]
2626

2727
NOTEBOOKS_usershowcase_links = [

docs/mkversions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
baseurl = f'/{getenv("GITHUB_REPOSITORY", "").split("/", 1)[-1]}/'.replace("//", "/")
99
docs = Path(__file__).parent
10-
exclude_paths = ["assets"] + [i.stem for i in (docs / "pages").glob("*.md")]
10+
exclude_paths = ["assets"] + [i.stem for i in (docs / "pages").glob("*.md")] + [i.stem for i in (docs / "pages").glob("*.html")]
1111
build = docs / "build"
1212
versions = [{
1313
"name": i.name,
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{% comment %}
2+
*
3+
* This file is based on _frontpage-widget.html from the feeling-responsive theme
4+
* https://github.com/Phlow/feeling-responsive
5+
* Licensed under MIT License
6+
*
7+
* Customization: Added inline styles to img tags for consistent image sizing
8+
*
9+
{% endcomment %}
10+
11+
{% comment %}
12+
*
13+
* First the include captures the url and image in a separate variable to make the code better readable.
14+
*
15+
* These variables are widget_url and widget_image
16+
*
17+
{% endcomment %}
18+
19+
{% capture widget_url %}{% if include.widget.url == NULL %}{% elsif include.widget.url contains 'http' %}{{ include.widget.url }}{% else %}{{ site.url }}{{ site.baseurl }}{{ include.widget.url }}{% endif %}{% endcapture %}
20+
21+
{% capture widget_image %}{% if include.widget.image contains 'http' %}{{ include.widget.image }}{% else %}{{ site.urlimg }}{{ include.widget.image }}{% endif %}{% endcapture %}
22+
23+
24+
<div class="medium-4 columns frontpage-widget">
25+
{% if include.widget.video %}
26+
{{ include.widget.video }}
27+
{% elsif widget_url == empty %}
28+
{% if widget_image != empty %}<img src="{{ widget_image }}" alt="" style="height: 200px; width: 100%; object-fit: contain;" />{% endif %}
29+
{% else %}
30+
<a href="{{ widget_url }}">
31+
{% if widget_image != empty %}<img src="{{ widget_image }}" alt="" style="height: 200px; width: 100%; object-fit: contain;" />{% endif %}
32+
</a>
33+
{% endif %}
34+
<h2 class="font-size-h3 t10">{{ include.widget.title }}</h2>
35+
{% if include.widget.text != empty %}<p>{{ include.widget.text }}</p>{% endif %}
36+
{% if widget_url != empty %}<p><a class="button tiny radius" href="{{ widget_url }}">{{ site.data.language.more }}</a></p>{% endif %}
37+
</div>

0 commit comments

Comments
 (0)