def write_to_file(self, filename):
r = self.transformation.r<EOL>t = self.transformation.t<EOL>with open(filename, "<STR_LIT:w>") as f:<EOL><INDENT>print("<STR_LIT>", file=f)<EOL>print("<STR_LIT>", file=f)<EOL>print("<STR_LIT>", file=f)<EOL>print("<STR_LIT>" % (r[<NUM_LIT:0>, <NUM_LIT:0>], r[<NUM_LIT:0>, <NUM_LIT:1>], r[<NUM_LIT:0>, <NUM_LIT:2>], t[<NUM_LIT:0>]), file=f)<EOL>print("<STR_LIT>" % (r[<NUM_LIT:1>, <NUM_LIT:0>], r[<NUM_LIT:1>, <NUM_LIT:1>], r[<NUM_LIT:1>, <NUM_LIT:2>], t[<NUM_LIT:1>]), file=f)<EOL>print("<STR_LIT>" % (r[<NUM_LIT:2>, <NUM_LIT:0>], r[<NUM_LIT:2>, <NUM_LIT:1>], r[<NUM_LIT:2>, <NUM_LIT:2>], t[<NUM_LIT:2>]), file=f)<EOL>print("<STR_LIT>", file=f)<EOL>print("<STR_LIT:U+0020>".join(str(i) for i in self.affected_atoms), file=f)<EOL><DEDENT>
Write the object to a file