def save_struct(self, ip, fname): """save_struct(ip, fname) --> Save structure resulting from fit to file. ip -- phase to save Raises: IOError if file cannot be saved pdffit2.unassignedError if the data set is undefined """ pdffit2.save_struct(self._handle, ip, fname) return
def save_struct(self, ip, fname): """save_struct(ip, fname) --> Save structure resulting from fit to file. ip -- phase to save Raises: IOError if file cannot be saved pdffit2.unassignedError if the data set is undefined """ pdffit2.save_struct(self._handle, ip, fname) return
def save_struct_string(self, ip): """save_struct(ip) --> Save structure resulting from fit to string. ip -- phase to save Raises: pdffit2.unassignedError if phase ip is undefined. Returns: string containing contents of save file """ structfilestring = pdffit2.save_struct(self._handle, ip, "") return structfilestring
def save_struct_string(self, ip): """save_struct(ip) --> Save structure resulting from fit to string. ip -- phase to save Raises: pdffit2.unassignedError if phase ip is undefined. Returns: string containing contents of save file """ structfilestring = pdffit2.save_struct(self._handle, ip, "") return structfilestring