Initialise a CutOffDictNN according to a preset set of cut-offs.

        Args:
            preset (str): A preset name. The list of supported presets are:

                - "vesta_2019": The distance cut-offs used by the VESTA
                  visualisation program.

        Returns:
            A CutOffDictNN using the preset cut-off dictionary.

def from_preset(preset):
        """
        Initialise a CutOffDictNN according to a preset set of cut-offs.

        Args:
            preset (str): A preset name. The list of supported presets are:

                - "vesta_2019": The distance cut-offs used by the VESTA
                  visualisation program.

        Returns:
            A CutOffDictNN using the preset cut-off dictionary.
        """
        if preset == 'vesta_2019':
            cut_offs = loadfn(os.path.join(_directory, 'vesta_cutoffs.yaml'))
            return CutOffDictNN(cut_off_dict=cut_offs)
        else:
            raise ValueError("Unrecognised preset: {}".format(preset))