@classmethod<EOL><INDENT>def read_from_file(cls, filename):<DEDENT>
with open(filename) as f:<EOL><INDENT>lines = list(line for line in f if line[<NUM_LIT:0>] != '<STR_LIT:#>')<EOL><DEDENT>r = []<EOL>t = []<EOL>for line in lines[:<NUM_LIT:3>]:<EOL><INDENT>values = list(float(word) for word in line.split())<EOL>r.append(values[:<NUM_LIT:3>])<EOL>t.append(values[<NUM_LIT:3>])<EOL><DEDENT>transformation = Complete(r, t)<EOL>affected_atoms = set(int(word) for word in lines[<NUM_LIT:3>].split())<EOL>return cls(affected_atoms, transformation)<EOL>
Construct a MolecularDistortion object from a file