sknano.io.DATAReader¶
-
class
sknano.io.DATAReader(fpath, atom_style='full', bond_style=None, angle_style=None, dihedral_style=None, improper_style=None, pair_style=None, **kwargs)[source][source]¶ StructureIOclass for reading LAMMPS data file format.Parameters: fpath : str
LAMMPS data file path
atom_style : {‘full’, ‘atomic’}, optional
Attributes
atomsStructure StructureAtoms.basisStructure BasisAtoms.comment_lineComment line. crystal_cellStructure CrystalCell.headersAlias for header_data.latticeStructure Crystal3DLattice.scaling_matrixCrystalCell.scaling_matrix.sectionsAlias for section_data.structurePointer to self. structure_dataAlias for BaseStructureMixin.structure.unit_cellStructure UnitCell.Methods
clear()Clear list of BaseStructureMixin.atoms.get(section[, colnum, colname, colindex])Return section with section. make_supercell(scaling_matrix[, wrap_coords])Make supercell. read()Read data file. read_data(*args, **kwargs)read_dump(*args, **kwargs)read_xyz(*args, **kwargs)rotate(**kwargs)Rotate crystal cell lattice, basis, and unit cell. transform_lattice(scaling_matrix[, ...])translate(t[, fix_anchor_points])Translate crystal cell basis. write_data(**kwargs)write_dump(**kwargs)write_xyz(**kwargs)