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

Collate bug with detect_transpositions #87

Open
sago2693 opened this issue Aug 25, 2023 · 0 comments
Open

Collate bug with detect_transpositions #87

sago2693 opened this issue Aug 25, 2023 · 0 comments

Comments

@sago2693
Copy link

sago2693 commented Aug 25, 2023

In edit_graph_aligner.py the detector is initalized like this:

if self.detect_transpositions:
    detector = TranspositionDetection(self)

But the TranspositionDetection class requires initialization also with an aligner:

class TranspositionDetection(object):

    def __init__(self, aligner):
        self.aligner = aligner

I detected this because I got the error:
for token in self.aligner.additions:
AttributeError: 'EditGraphAligner' object has no attribute 'additions'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant