Skip to content

Commit d53f71c

Browse files
committed
Merge branch 'main' into doc_v1_test_1umservice
2 parents 7dc4cd4 + 9bfa668 commit d53f71c

17 files changed

Lines changed: 155 additions & 52 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Blank issue
3+
about: Create a new issue without a template
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Bug report
3+
about: Please fill in the following information to the best of your ability.
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is. If there is an error message, please include it as well.
12+
13+
**To Reproduce**
14+
python version:
15+
siibra-python version:
16+
17+
```python
18+
# Short code snippet on how to reproduce the bug if possible. (insert your code below here)
19+
```
20+
21+
**Additional context**
22+
Add any other context (or screenshot) about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: user feedback
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/workflows/_run_examples.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ on:
1616
required: false
1717
type: string
1818
default: "INFO_WO_PROGRESS_BARS"
19+
test_file:
20+
required: false
21+
type: string
22+
default: "examples/test_examples.py, examples/test_tutorials.py"
1923

2024
jobs:
2125
test_examples:
@@ -46,4 +50,4 @@ jobs:
4650
env:
4751
SIIBRA_LOG_LEVEL: ${{ inputs.siibra_log_level }}
4852
shell: bash
49-
run: pytest -rx --durations=5 examples/test_examples.py
53+
run: pytest -rx --durations=5 ${{ inputs.test_file }}

.github/workflows/siibra-testing.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,16 @@ jobs:
103103
test_folder: ${{ matrix.test_folder }}
104104
strategy:
105105
matrix:
106-
test_folder: ["e2e/core", "e2e/volumes", "e2e/retrieval", "e2e/locations", "e2e/features/activity_timeseries", "e2e/features/connectivity", "e2e/features/image", "e2e/features/external", "e2e/features/molecular", "e2e/features/test_get.py e2e/features/test_plot.py e2e/features/test_generic.py"]
106+
test_folder: ["e2e/core", "e2e/volumes", "e2e/retrieval", "e2e/locations", "e2e/features/activity_timeseries", "e2e/features/connectivity", "e2e/features/image", "e2e/features/external", "e2e/features/molecular", "e2e/features/test_get.py", "e2e/features/test_plot.py", "e2e/features/test_generic.py"]
107107

108108
test-examples:
109109
needs: 'use-custom-cfg'
110110
uses: ./.github/workflows/_run_examples.yaml
111111
with:
112112
os: ubuntu-latest
113113
python-version: "3.8"
114-
use-cfg: ${{ needs.use-custom-cfg.outputs.USE_REF }}
114+
use-cfg: ${{ needs.use-custom-cfg.outputs.USE_REF }}
115+
test_file: ${{ matrix.test_file }}
116+
strategy:
117+
matrix:
118+
test_file: [examples/test_examples.py, examples/test_tutorials.py]

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ license: Apache-2.0
1515

1616
repository-code: https://github.com/FZJ-INM1-BDA/siibra-python
1717

18-
version: v1.0.1-alpha.10
18+
version: v1.0.1-alpha.13
1919

20-
date-released: 2025-08-25
20+
date-released: 2026-02-06
2121

2222
doi: 10.5281/zenodo.7885728
2323

e2e/features/image/test_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_images_datasets_names():
2424
all_ds_names = {ds.name for f in all_image_features for ds in f.datasets}
2525
end = time.time()
2626
duration = start - end
27-
assert len(all_ds_names) == 10, "expected 10 distinct names" # this must be updated if new datasets are added
27+
assert len(all_ds_names) == 12, "expected 12 distinct names" # this must be updated if new datasets are added
2828
assert duration < 1, "Expected getting dataset names to be less than 1s"
2929

3030

e2e/features/test_get.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ def test_feature_unique(Cls: siibra.features.Feature):
3838

3939
selected_ids = [
4040
"lq0::EbrainsDataFeature::p:minds/core/parcellationatlas/v1.0.0/94c1125b-b87e-45e4-901c-00daee7f2579-290::r:Area hOc1 (V1, 17, CalcS) left::https://nexus.humanbrainproject.org/v0/data/minds/core/dataset/v1.0.0/3ff328fa-f48f-474b-bd81-b5ee7ca230b6",
41-
# "cf0::BigBrainIntensityProfile::p:minds/core/parcellationatlas/v1.0.0/94c1125b-b87e-45e4-901c-00daee7f2579-290::r:Area hOc1 (V1, 17, CalcS) left::acc39db40e08a9ce23d05bf75a4ce172::0d023118e0b9923a11628642e6170d00", # 1574 BigBrain Intensity Profile features
4241
"cf0::BigBrainIntensityProfile::p:minds/core/parcellationatlas/v1.0.0/94c1125b-b87e-45e4-901c-00daee7f2579-290::r:Area hOc1 (V1, 17, CalcS) left::acc39db40e08a9ce23d05bf75a4ce172::560a3ae060014a2076210c84e31b5412", # 1236 BigBrain Intensity Profile features
4342
"lq0::BigBrainIntensityProfile::p:minds/core/parcellationatlas/v1.0.0/94c1125b-b87e-45e4-901c-00daee7f2579-290::r:Area hOc1 (V1, 17, CalcS) left::acc39db40e08a9ce23d05bf75a4ce172--4b4e7dea27709f3367dd468f9c9a96ed", # BigBrain Intensity Profile: (4.848050117492676, -55.64030075073242, 1.999250054359436)
4443
"cf0::CellDensityProfile::p:minds/core/parcellationatlas/v1.0.0/94c1125b-b87e-45e4-901c-00daee7f2579-290::r:Area hOc1 (V1, 17, CalcS)::f2cd6b97-e42d-41af-a01b-5caf2d692e28::599f219267d5bdc3c5c04ddf31f36748", # 10 Cell Density Profile features

examples/02_maps_and_templates/004_access_bigbrain.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
point2="-26.557mm, 6.277mm, 50.631mm",
5454
space=space
5555
)
56-
bigbrain_chunk = bigbrain_template.fetch(voi=voi, resolution_mm=0.02)
56+
bigbrain_chunk = bigbrain_template.fetch(voi=voi)
5757
plotting.view_img(bigbrain_chunk, bg_img=None, cmap='gray')
5858

5959
# %%
@@ -70,10 +70,10 @@
7070
# %%
7171
# Next we select a parcellation which provides a map for BigBrain, and extract
7272
# labels for the same volume of interest. We choose the cortical layer maps by `Wagstyl et al<https://journals.plos.org/plosbiology/article?id=10.1371/journal.pbio.3000678>`.
73-
# Note that by specifying "-1" as a resolution, `siibra` will fetch the highest
74-
# possible resolution.
73+
# Note that `siibra` will fetch the highest possible resolution if not specified
74+
# limited by the download size which can be updated with `max_bytes`
7575
layermap = siibra.get_map(space='bigbrain', parcellation='layers')
76-
mask = layermap.fetch(fragment='left hemisphere', resolution_mm=-1, voi=voi)
76+
mask = layermap.fetch(fragment='left hemisphere', voi=voi)
7777
mask
7878

7979
# %%
@@ -122,5 +122,5 @@
122122

123123
# this is quite large, so we shrink it
124124
voi = hoc5_bbox.zoom(0.1)
125-
crop = section1402.fetch(voi=voi, resolution_mm=-1)
125+
crop = section1402.fetch(voi=voi)
126126
plotting.plot_img(crop, bg_img=None, cmap="gray", display_mode="y")

examples/test_examples.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99

1010
def get_examples():
1111
for example in pathlib.Path("./examples").resolve().rglob("*.py"):
12-
if example.name == "test_examples.py":
12+
if example.name in ["test_examples.py", "test_tutorials.py"]:
13+
continue
14+
if example.parent.name == "tutorials": # computationally expensive, hence, a second test is performed to do them in parallel.
1315
continue
1416
yield pytest.param(example, id=example.name)
1517

0 commit comments

Comments
 (0)