module
Chem::XYZ
Defined in:
chem/formats/xyz.crClass Method Summary
-
.each(io : IO, guess_bonds : Bool = false, guess_names : Bool = false, & : Structure -> ) : Nil
Yields each structure in io.
-
.each(path : Path | String, guess_bonds : Bool = false, guess_names : Bool = false, & : Structure -> ) : Nil
Yields each structure in path.
-
.read(io : IO, guess_bonds : Bool = false, guess_names : Bool = false) : Structure
Returns the next structure from io.
-
.read(path : Path | String, guess_bonds : Bool = false, guess_names : Bool = false) : Structure
Returns the next structure from path.
-
.read_all(io : IO, guess_bonds : Bool = false, guess_names : Bool = false) : Array(Structure)
Returns all structures in io.
-
.read_all(path : Path | String, guess_bonds : Bool = false, guess_names : Bool = false) : Array(Structure)
Returns all structures in path.
-
.write(io : IO, obj : AtomView | Structure, extended : Bool = false, fields : Array(String) = [] of String) : Nil
Writes one or more structures or groups of atoms to io.
-
.write(io : IO, objs : Enumerable(Structure), extended : Bool = false, fields : Array(String) = [] of String) : Nil
Writes one or more structures or groups of atoms to io.
-
.write(path : Path | String, obj : AtomView | Structure, extended : Bool = false, fields : Array(String) = [] of String) : Nil
Writes one or more structures or groups of atoms to path.
-
.write(path : Path | String, objs : Enumerable(Structure), extended : Bool = false, fields : Array(String) = [] of String) : Nil
Writes one or more structures or groups of atoms to path.
Class Method Detail
Yields each structure in io.
Yields each structure in path.
Returns all structures in io.
Returns all structures in path.
Writes one or more structures or groups of atoms to io.
extended enables the extended XYZ specification, which allows to specify additional data and atom properties in the comment line. If given, fields specifies which atom properties to write in extended mode, otherwise all metadata properties are written.
Writes one or more structures or groups of atoms to io.
extended enables the extended XYZ specification, which allows to specify additional data and atom properties in the comment line. If given, fields specifies which atom properties to write in extended mode, otherwise all metadata properties are written.
Writes one or more structures or groups of atoms to path.
extended enables the extended XYZ specification, which allows to specify additional data and atom properties in the comment line. If given, fields specifies which atom properties to write in extended mode, otherwise all metadata properties are written.
Writes one or more structures or groups of atoms to path.
extended enables the extended XYZ specification, which allows to specify additional data and atom properties in the comment line. If given, fields specifies which atom properties to write in extended mode, otherwise all metadata properties are written.