cran2367 / sgt

Sequence Graph Transform
104 stars 21 forks source link

missing import sys #11

Open HardProxy opened 2 years ago

HardProxy commented 2 years ago

When the corpus lenght is over 1e5 uses the sys library and it throw a error.

 def estimate_alphabets(self, corpus):
        if len(corpus) > 1e5:
            print("Error: Too many sequences. Pass the alphabet list as an input. Exiting.")
            sys.exit(1)
        else:
            return(np.unique(np.asarray(self.__flatten(corpus))).tolist())

I think it is easy to solve, just import.