Skip to content

Commit 934adc6

Browse files
authored
Merge pull request #153 from khanlab/fix-nondeterministic-params
fix for stains list
2 parents 59204ba + 692601e commit 934adc6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

spimquant/workflow/rules/common.smk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,12 @@ def get_template_for_reg(wildcards):
5555

5656

5757
def get_stains_all_subjects():
58-
5958
stain_sets = [
6059
set(ZarrNii.from_ome_zarr(zarr).list_channels())
6160
for zarr in inputs["spim"].expand()
6261
]
6362
if all(s == stain_sets[0] for s in stain_sets):
64-
return list(stain_sets[0])
63+
return sorted(stain_sets[0])
6564
else:
6665
raise ValueError(f"stains across subjects are not consistent, {stain_sets}")
6766

0 commit comments

Comments
 (0)