Skip to content

Collate bug with detect_transpositions #87

@sago2693

Description

@sago2693

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions