def get_plot_data(self, residue_name, point_type): assert (point_type in ["All", "None", "Outlier"]) points = [] coords = [] for i, residue in enumerate(self.results): if (residue.resname == residue_name): if ((point_type == "All") or (residue.is_outlier())): chi1, chi2 = residue.get_chi1_chi2() points.append((chi1, chi2, residue.simple_id(), residue.is_outlier())) coords.append(residue.xyz) return (points, coords)
def get_plot_data(self, residue_name, point_type): assert point_type in ["All", "None", "Outlier"] points = [] coords = [] for i, residue in enumerate(self.results): if residue.resname == residue_name: if (point_type == "All") or (residue.is_outlier()): chi1, chi2 = residue.get_chi1_chi2() points.append((chi1, chi2, residue.simple_id(), residue.is_outlier())) coords.append(residue.xyz) return (points, coords)