XYZData¶
-
class
sknano.io.xyz.XYZData(fpath=None, **kwargs)[source] [edit on github][source]¶ Bases:
sknano.io.xyz.XYZReaderClass for reading and writing
StructureDatainxyzformat.Parameters: fpath (str, optional) – Attributes
atomsStructure Atoms.basisStructure BasisAtoms.comment_lineComment line. crystal_cellStructure CrystalCell.fmtstrFormat string. latticeStructure Crystal3DLattice.lattice_shiftLattice displacement vector. scaling_matrixCrystalCell.scaling_matrix.structureAn alias to self.unit_cellStructure UnitCell.Methods
clear()Clear list of StructureMixin.atoms.make_supercell(scaling_matrix[, wrap_coords])Make supercell. read()Read xyzfile.read_data(*args, **kwargs)Read LAMMPS Data file. read_dump(*args, **kwargs)Read LAMMPS Dump file. read_pdb(*args, **kwargs)Read PDB file. read_xyz(*args, **kwargs)Read XYZ file. rotate(**kwargs)Rotate crystal cell lattice, basis, and unit cell. todict()Return dictof constructor parameters.transform_lattice(scaling_matrix[, ...])Transform structure lattice. translate(t[, fix_anchor_points])Translate crystal cell lattice, basis, and unit cell. write([xyzfile, atoms, comment_line])Write xyz file. write_data(**kwargs)Write LAMMPS data file. write_dump(**kwargs)Write LAMMPS dump file. write_pdb(**kwargs)Write pdb file. write_xyz(**kwargs)Write xyz file. Methods Summary
write([xyzfile, atoms, comment_line])Write xyz file. Methods Documentation
-
write(xyzfile=None, atoms=None, comment_line=None, **kwargs)[source] [edit on github][source]¶ Write xyz file.
Parameters: - xyzfile ({None, str}, optional) –
- comment_line (str, optional) – A string written to the first line of
xyzfile. IfNone, then it is set to the full path of the outputxyzfile.
-