Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor channel_group_search implementation in tdm_loader #27

Merged
merged 9 commits into from
Mar 22, 2024
6 changes: 4 additions & 2 deletions tdm_loader/tdm_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,10 @@ def channel_group_search(self, search_term):

ind = []
for name in found_terms:
i = chg_names.index(name)
ind.append((name, i))
for occurence in range(found_terms.count(name)):
i = self.channel_group_index(name, occurence)
if (name, i) not in ind:
ind.append((name, i))

return ind

Expand Down
Loading