Skip to content

Commit 69c37bd

Browse files
committed
peter's edit on ApiMel
1 parent 36e9395 commit 69c37bd

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

stdpopsim/catalog/ApiMel/species.py

+2-11
Original file line numberDiff line numberDiff line change
@@ -131,18 +131,9 @@
131131
"CM009947.2": ["NC_001566.1", "MT"],
132132
}
133133

134-
135-
def add_if_unique(chrom, synonyms):
136-
for syn in synonyms:
137-
# commented this out for now as this case
138-
# is not occurring and it's messing with code coverage
139-
# if syn not in chrom.synonyms:
140-
# chrom.synonyms.append(syn)
141-
pass
142-
143-
144134
for chrom in _genome.chromosomes:
145-
add_if_unique(chrom, chr_synonyms_dict[chrom.id])
135+
syns = list(set(chrom.synonyms + chr_synonyms_dict[chrom.id]))
136+
chrom.synonyms = syns
146137

147138
_NelsonEtAl = stdpopsim.Citation(
148139
doi="https://doi.org/10.1111/mec.14122",

0 commit comments

Comments
 (0)