pyxtal_ff_utilities

class pyxtal_ff.utilities.Database(name)[source]

Bases: object

add(function, data)[source]

Add descriptors for all structures to database.

append(value)[source]

Append value to the end of the sequence.

close()[source]
compute(function, data)[source]

Compute descriptor for one structure to the database.

insert(index, value)[source]

Insert the value to the dictionary at index.

store(structure_file, function, storage, ase_db=None)[source]

Map structures to descriptors and store them, including features, to database. If compute is False, print pre-computed descriptors message.

pyxtal_ff.utilities.compute_descriptor(function, structure)[source]

Compute descriptor for one structure.

pyxtal_ff.utilities.convert_to_ase_db(data, db_path='test.db')[source]
pyxtal_ff.utilities.create_label(elements, hiddenlayers)[source]
pyxtal_ff.utilities.get_descriptors_parameters(symmetry, system)[source]
pyxtal_ff.utilities.parse_OUTCAR_comp(structure_file, N=1000000)[source]

Extract structures/enegy/force information from compressed OUTCAR file

pyxtal_ff.utilities.parse_ase_db(db_path, N=None, Random=False)[source]
pyxtal_ff.utilities.parse_dat(structure_files)[source]
pyxtal_ff.utilities.parse_json(path, N=None, Random=False)[source]

Extract structures/energy/forces/stress information from json file.

pyxtal_ff.utilities.parse_traj(structure_file)[source]
pyxtal_ff.utilities.parse_xyz(structure_file, N=1000000)[source]

Extract structures/enegy/force information of xyz file provided by the Cambridge group