Skip to content

Commit 562d267

Browse files
authored
Merge pull request #959 from fractal-analytics-platform/958_apply_registration_fix
Allow apply acquisition to find the reference better
2 parents b8677d4 + ab8fa20 commit 562d267

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
**Note**: Numbers like (\#123) point to closed Pull Requests on the fractal-tasks-core repository.
22

3+
# 1.5.3
4+
* Tasks:
5+
* Fix the heuristic in the Apply registration task to handle the registration of the reference cycle better (\#959).
6+
37
# 1.5.2
48
* Library
59
* Update masked loading wrapper to support loading masking ROIs written by ngio (\#957).

fractal_tasks_core/tasks/_zarr_utils.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,6 @@ def _get_matching_ref_acquisition_path_heuristic(
140140
# Sort path_list
141141
sorted_path_list = sorted(path_list)
142142

143-
# Never return the input `path`
144-
if path in sorted_path_list:
145-
sorted_path_list.remove(path)
146-
147143
# First matching rule: a path with the same suffix
148144
for p in sorted_path_list:
149145
# Split the list path into base and suffix

tests/tasks/test_unit_zarr_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ def test_update_well_metadata_failures(
184184

185185
HEURISTIC_CASES = [
186186
(["0", "0_illum_corr"], "1_illum_corr", "0_illum_corr"),
187+
(["0", "0_illum_corr"], "0_illum_corr", "0_illum_corr"),
187188
(["0", "0_illum_corr"], "1", "0"),
188189
(["0", "0_illum_corr", "0_registered"], "1_illum_corr", "0_illum_corr"),
189190
(["0", "1", "2", "3"], "0_acq2", "0"),

0 commit comments

Comments
 (0)