Skip to content

Commit

Permalink
Merge names (#4432)
Browse files Browse the repository at this point in the history
* Merge names (closes #4428)
* Update script, sort name variants file
  • Loading branch information
mjpost authored Jan 22, 2025
1 parent d7c6684 commit 9f2f2df
Show file tree
Hide file tree
Showing 2 changed files with 278 additions and 330 deletions.
10 changes: 8 additions & 2 deletions bin/clean_name_variants.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/usr/bin/env python3

"""
Removes unused name variants and also sorts the file.
Run this any time you edit name_variants to easily keep things sorted.
"""

import yaml
import sys
import anthology
import logging
import os.path
Expand Down Expand Up @@ -29,4 +35,4 @@

newvariants.sort(key=lambda v: (v["canonical"]["last"], v["canonical"]["first"]))

sys.stdout.write(yaml.dump(newvariants, allow_unicode=True, default_flow_style=None))
print(yaml.dump(newvariants, allow_unicode=True, default_flow_style=None))
Loading

0 comments on commit 9f2f2df

Please sign in to comment.