DUMPFormatter¶
-
class
sknano.io.
DUMPFormatter
(style=None, dumpattrs=None, dumpattrmap=None, atomattrmap=None)[source] [edit on github][source]¶ Bases:
sknano.io.StructureIOFormatter
Class defining the structure file format for LAMMPS dump.
Parameters: -
style
¶
-
dumpattrs2index
¶
Attributes
atomattrs
List of dump atom attributes. attr_dtypes
List of dump atom attributes. dumpattrs
List of dump attributes. fmtstr
Format string. otherattrs
List 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 str
of dump attributes formatted for an output stream.remapdumpattrs
(dumpattrs, dumpattrmap)Rename attributes in the DUMPFormatter.dumpattrs
list.todict
()Return dict
of constructor parameters.Attributes Summary
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 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 str
of dump attributes formatted for an output stream.remapdumpattrs
(dumpattrs, dumpattrmap)Rename attributes in the DUMPFormatter.dumpattrs
list.todict
()Return dict
of 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
str
of 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.dumpattrs
list.Parameters: dumpattrmap ( dict
) –dict
mapping atom attribute name to new attribute name.
-
todict
()[source] [edit on github][source]¶ Return
dict
of constructor parameters.
-