Skip to content

Commit 8764f4c

Browse files
committed
- sort serology set before joining with '/'
- set numpy to 1.24.3 as 1.25 is not compatible with Python 3.9
1 parent 2602a9e commit 8764f4c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

pyard/ard.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,11 @@ def _redux_allele(
267267
for serology, allele_list in serology_mapping.items():
268268
if allele in allele_list:
269269
serology_set.add(serology)
270-
return "/".join(serology_set)
270+
return "/".join(
271+
sorted(
272+
serology_set, key=functools.cmp_to_key(self.smart_sort_comparator)
273+
)
274+
)
271275
else:
272276
# Make this an explicit lookup to the g_group or p_group table
273277
# for stringent validation

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
toml==0.10.2
2+
numpy==1.24.3
23
pandas==1.5.3

0 commit comments

Comments
 (0)