DUMPFormatter¶
-
class
sknano.io.lammps_dump.DUMPFormatter(style=None, dumpattrs=None, dumpattrmap=None, atomattrmap=None)[source] [edit on github][source]¶ Bases:
sknano.io.StructureIOFormatterClass defining the structure file format for LAMMPS dump.
Parameters: -
style¶
-
dumpattrs2index¶
Attributes
atomattrsList of dump atom attributes. attr_dtypesList of dump atom attributes. dumpattrsList of dump attributes. fmtstrFormat string. otherattrsList of other dump atom attributes. Methods
atomattrs2str()Return a space-separated string of parsed atom attributes. dumpattrs2str()Return a space-separated string of the dumped atom attributes. format(attrs[, attr_dtypes])Return strof dump attributes formatted for an output stream.remapdumpattrs(dumpattrs, dumpattrmap)Rename attributes in the DUMPFormatter.dumpattrslist.todict()Return dictof constructor parameters.Attributes Summary
atomattrsList of dump atom attributes. attr_dtypesList of dump atom attributes. dumpattrsList of dump attributes. otherattrsList of other dump atom attributes. Methods Summary
atomattrs2str()Return a space-separated string of parsed atom attributes. dumpattrs2str()Return a space-separated string of the dumped atom attributes. format(attrs[, attr_dtypes])Return strof dump attributes formatted for an output stream.remapdumpattrs(dumpattrs, dumpattrmap)Rename attributes in the DUMPFormatter.dumpattrslist.todict()Return dictof constructor parameters.Attributes Documentation
-
atomattrs¶ List of dump atom attributes.
-
attr_dtypes¶ List of dump atom attributes.
-
dumpattrs¶ List of dump attributes.
-
otherattrs¶ List of other dump atom attributes.
Methods Documentation
-
atomattrs2str()[source] [edit on github][source]¶ Return a space-separated string of parsed atom attributes.
-
dumpattrs2str()[source] [edit on github][source]¶ Return a space-separated string of the dumped atom attributes.
-
format(attrs, attr_dtypes=None)[source] [edit on github][source]¶ Return
strof dump attributes formatted for an output stream.Parameters: attrs ( list) – List of dump attribute values.
-
remapdumpattrs(dumpattrs, dumpattrmap)[source] [edit on github][source]¶ Rename attributes in the
DUMPFormatter.dumpattrslist.Parameters: dumpattrmap ( dict) –dictmapping atom attribute name to new attribute name.
-
todict()[source] [edit on github][source]¶ Return
dictof constructor parameters.
-