Skip to content

Commit

Permalink
Merge pull request #532 from xchem/m2ms-1277-canon-conf-tags
Browse files Browse the repository at this point in the history
Renamed canon- and conf site tags
  • Loading branch information
kaliif authored Feb 16, 2024
2 parents 363b0e2 + be12762 commit b5639af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions viewer/target_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1724,7 +1724,7 @@ def process_bundle(self):

# tag site observations
for val in canon_site_objects.values(): # pylint: disable=no-member
tag = f"{val.instance.canon_site_num} - {val.instance.name}"
tag = f"{val.instance.canon_site_num} - {''.join(val.instance.name.split('+')[1:-1])}"
so_list = SiteObservation.objects.filter(
canon_site_conf__canon_site=val.instance
)
Expand All @@ -1739,7 +1739,7 @@ def process_bundle(self):
tag = (
f"{val.instance.canon_site.canon_site_num}"
+ f"{next(numerators[val.instance.canon_site.canon_site_num])}"
+ f" - {val.instance.name}"
+ f" - {val.instance.name.split('+')[0]}"
)
so_list = [
site_observation_objects[strip_version(k)].instance
Expand Down

0 comments on commit b5639af

Please sign in to comment.