dragonfruit.utils module

dragonfruit.utils.copy_many(seq: Sequence[dragonfruit.utils.T], hist=None) Sequence[dragonfruit.utils.T]

Copy multiple objects with the historian. Will fallback to python copy, if no historian is found

dragonfruit.utils.copy_one(obj: dragonfruit.utils.T, hist=None) dragonfruit.utils.T

Copy a single object with the historian. Will fallback to python copy, if no historian is found

dragonfruit.utils.get_atoms_sort_map(atoms)

Ensure all atoms in the array are sorted

dragonfruit.utils.is_string_in_file(filename, string)
dragonfruit.utils.load_module(fullname)
dragonfruit.utils.load_object(fullname)

Load a class from a string

dragonfruit.utils.log_to_stdout(log_level=20)
dragonfruit.utils.null_context()

Context that does nothing

dragonfruit.utils.resort_atoms_and_results(atoms, resort) Tuple[ase.atoms.Atoms, Dict]

Sort an atoms object and the corresponds arrays which will be returned in a results dictionary along with the atoms

dragonfruit.utils.working_directory(path)

Changes working directory and returns to previous on exit.