def get_structure_from_canonical_name(self, structure_name):
        """
            Return a structure from a canonical name
        Args:
            structure_name (str): canonical name of the structure
        Returns:
            Structure
        """
        return next((st for st in self.structures if st.canonical_name == structure_name), None)
def get_structure_from_canonical_name ( self , structure_name ) : return next ( ( st for st in self . structures if st . canonical_name == structure_name ) , None )
Return a structure from a canonical name
        Args:
            structure_name (str): canonical name of the structure
        Returns:
            Structure