Skip to content

Commit

Permalink
Improve repr of CigarActions
Browse files Browse the repository at this point in the history
  • Loading branch information
Donaim committed Oct 25, 2024
1 parent 28c6d87 commit 1778af9
Show file tree
Hide file tree
Showing 2 changed files with 1,130 additions and 1,103 deletions.
3 changes: 3 additions & 0 deletions src/aligntools/cigar_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ def parse(value: str) -> 'CigarActions':
def __str__(self) -> str:
return OP_MAPPING_REV[self]

def __repr__(self) -> str:
return super().__str__()

def relax(self) -> 'CigarActions':
if self == CigarActions.SEQ_MATCH:
return CigarActions.MATCH
Expand Down
Loading

0 comments on commit 1778af9

Please sign in to comment.