vermouth/molecule.py
def find_atoms(self, **attrs):
        """
        Yields all indices of atoms that match `attrs`

        Parameters
        ----------
        **attrs: collections.abc.Mapping
            The attributes and their desired values.

        Yields
        ------
        collections.abc.Hashable
            All atom indices that match the specified `attrs`
        """
        for node_idx in self:
            node = self.nodes[node_idx]
            if all(node.get(attr, None) == val for attr, val in attrs.items()):
                yield node_idx

        Yields all indices of atoms that match `attrs`

        Parameters
        ----------
        **attrs: collections.abc.Mapping
            The attributes and their desired values.

        Yields
        ------
        collections.abc.Hashable
            All atom indices that match the specified `attrs`
        
Yields all indices of atoms that match `attrs`
Parameters

collections.abc.Mapping
The attributes and their desired values.

Yields

collections.abc.Hashable
All atom indices that match the specified `attrs`
Yields all indices of atoms that match ` attrs ` Parameters collections . abc . Mapping The attributes and their desired values . Yields collections . abc . Hashable All atom indices that match the specified ` attrs `
def find_atoms(self, **attrs):
        for node_idx in self:
            node = self.nodes[node_idx]
            if all(node.get(attr, None) == val for attr, val in attrs.items()):
                yield node_idx
def find_atoms ( self , ** attrs ) : for node_idx in self : node = self . nodes [ node_idx ] if all ( node . get ( attr , None ) == val for attr , val in attrs . items ( ) ) : yield node_idx
Yields all indices of atoms that match `attrs`
Parameters
Yields all indices of atoms that match ` attrs ` Parameters
"""
        Yields all indices of atoms that match `attrs`

        Parameters
        ----------
        **attrs: collections.abc.Mapping
            The attributes and their desired values.

        Yields
        ------
        collections.abc.Hashable
            All atom indices that match the specified `attrs`
        """
self