src/proteingnn/data.py
def filter(self, pose: PoseType, atoms: Dict[AtomIDType, AtomType]) -> Dict[AtomIDType, AtomType]:
        """Filter by arbitrary method. Filter virtual atoms regardless."""
        new_atoms = {}

        for atom_id, atom in atoms.items():
            atom_name = atom_id2atom_name(atom_id, pose)
            if self.filter_func(pose, atom_id, atom_name) and self.filter_virt(pose, atom_id, atom_name):
                new_atoms[atom_id] = atom

        return new_atoms
Filter by arbitrary method. Filter virtual atoms regardless.
Filter by arbitrary method. Filter virtual atoms regardless.
Filter by arbitrary method . Filter virtual atoms regardless .
def filter(self, pose: PoseType, atoms: Dict[AtomIDType, AtomType]) -> Dict[AtomIDType, AtomType]:
        new_atoms = {}
        for atom_id, atom in atoms.items():
            atom_name = atom_id2atom_name(atom_id, pose)
            if self.filter_func(pose, atom_id, atom_name) and self.filter_virt(pose, atom_id, atom_name):
                new_atoms[atom_id] = atom
        return new_atoms
def filter ( self , pose : PoseType , atoms : Dict [ AtomIDType , AtomType ] ) -> Dict [ AtomIDType , AtomType ] : new_atoms = { } for atom_id , atom in atoms . items ( ) : atom_name = atom_id2atom_name ( atom_id , pose ) if self . filter_func ( pose , atom_id , atom_name ) and self . filter_virt ( pose , atom_id , atom_name ) : new_atoms [ atom_id ] = atom return new_atoms
Filter by arbitrary method.
Filter by arbitrary method .
"""Filter by arbitrary method. Filter virtual atoms regardless."""
self
pose
PoseType
atoms
Dict[AtomIDType, AtomType]