Skip to content

Commit

Permalink
fix(mods): drop trailing space after bracketed modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLostLambda committed Oct 15, 2023
1 parent 21d80dc commit a11c146
Show file tree
Hide file tree
Showing 4 changed files with 1,706 additions and 1,706 deletions.
2 changes: 1 addition & 1 deletion lib/pgfinder/matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def modification_generator(filtered_theo_df: pd.DataFrame, mod_type: str) -> pd.
# The silly `len(s) - 2` rubbish here is to preserve the `|x` multimer number at the end of
# each structure name
def default_case(s):
return s[: len(s) - 2] + " " + mod_abbr + " " + s[len(s) - 2 : len(s)]
return s[: len(s) - 2] + " " + mod_abbr + s[len(s) - 2 : len(s)]

structure_updater = special_cases.get(mod_type, default_case)

Expand Down
Loading

0 comments on commit a11c146

Please sign in to comment.