<reponame>cubeme/ECproject<gh_stars>0
# coordinate class for mapping the sequence onto the lattice
class Coordinate:
    def __init__(self, x, y):
        self.x = x
        self.y = y

    def __hash__(self):
        return hash((self.x, self.y))

    def __eq__(self, other):
        return (self.x, self.y) == (other.x, other.y)

    def __ne__(self, other):
        # Not strictly necessary, but to avoid having both x==y and x!=y
        # True at the same time
        return not (self == other)

# coordinate class for mapping the sequence onto the lattice
class Coordinate:
    def __init__(self, x, y):
        self.x = x
        self.y = y

    def __hash__(self):
        return hash((self.x, self.y))

    def __eq__(self, other):
        return (self.x, self.y) == (other.x, other.y)

    def __ne__(self, other):
        # Not strictly necessary, but to avoid having both x==y and x!=y
        # True at the same time
        return not (self == other)
# coordinate class for mapping the sequence onto the lattice # Not strictly necessary, but to avoid having both x==y and x!=y # True at the same time