Converter for input files for the machine learning architectures VASP ML, N2P2 and models reading ase XYZ files (e.g. MACE), developed within the special research programme TACO
from taconverter import *
structures = read_N2P2("example_N2P2.txt") # Read N2P2 file
structures = reorder(structures) #Reorder atoms and structures for VASP (optional)
write_MLAB("example_MLAB",structures) # Write VASP ML_AB file
write_XYZ("example_XYZ",structures) # Write ase XYZ file
read_N2P2(): reads N2P2 input filesread_MLAB(): reads VASP ML_AB input filesread_XYZ(): reads ase extended XYZ fileswrite_N2P2(): writes N2P2 input fileswrite_MLAB(): writes VASP ML_AB input fileswrite_XYZ(): writes ase extended XYZ filesreorder(): reorders atoms within a conformation as well as the sequence of conformations for VASP. This is optional, and reordering can also be done by VASP later