def report_and_save_keywords(self,relaxation_kwds,precomputed_kwds):
report_name = os.path.join(self.backup_dir,'<STR_LIT>')<EOL>pretty_relax_kwds = pprint.pformat(relaxation_kwds,indent=<NUM_LIT:4>)<EOL>with open(report_name,'<STR_LIT:w>') as wf:<EOL><INDENT>wf.write(pretty_relax_kwds)<EOL><DEDENT>wf.close()<EOL>origin_name = os.path.join(self.backup_dir,'<STR_LIT>')<EOL>with open(origin_name,'<STR_LIT:wb>') as ro:<EOL><INDENT>pickle.dump(relaxation_kwds,ro,protocol=pickle.HIGHEST_PROTOCOL)<EOL><DEDENT>ro.close()<EOL>if relaxation_kwds['<STR_LIT>']:<EOL><INDENT>precomp_kwds_name = os.path.join(self.backup_dir,<EOL>'<STR_LIT>')<EOL>with open(precomp_kwds_name, '<STR_LIT:wb>') as po:<EOL><INDENT>pickle.dump(precomputed_kwds, po,<EOL>protocol=pickle.HIGHEST_PROTOCOL)<EOL><DEDENT>po.close()<EOL><DEDENT>
Save relaxation keywords to .txt and .pyc file