def save_res(self, fname): """save_res(fname) --> Save fit-specific data to file. Raises: IOError if file cannot be saved pdffit2.unassignedError if there is no refinement data to save """ pdffit2.save_res(self._handle, fname) return
def save_res_string(self): """save_res_string() --> Save fit-specific data to a string. Raises: pdffit2.unassignedError if there is no refinement data to save Returns: string containing contents of save file """ resfilestring = pdffit2.save_res(self._handle, "") return resfilestring