SelectionParser¶
-
class
sknano.core.atoms.
SelectionParser
(atoms=None, selstr=None, **kwargs)[source] [edit on github][source]¶ Bases:
sknano.core.meta.BaseClass
Selection parser class.
Attributes
fmtstr
Format string. Methods
Attributes Summary
Methods Summary
parse
([selstr])Parse selstr
.todict
()Attributes Documentation
-
ATOM_ATTRIBUTE
= x | y | z | r | vx | vy | vz | v | fx | fy | fz | f | Z | element | symbol | mass | CN[source]¶
-
REGIONS
= {{{{{{"Parallelepiped" | "Cuboid"} | "Cube"} | "Ellipsoid"} | "Sphere"} | "Cylinder"} | "Cone"}[source]¶
-
attr_selection_expression
= {{x | y | z | r | vx | vy | vz | v | fx | fy | fz | f | Z | element | symbol | mass | CN [<= | < | == | >= | > | != | LT | LE | EQ | GT | GE | NE]} {{Re:('[+-]?\\d+(\\.\\d*)?([eE][+-]?\\d+)?') | Re:('[+-]?\\d+')} | W:(ABCD...)}}[source]¶
-
exwithin_selection_expression
= {{{Suppress:("exwithin") {Re:('[+-]?\\d+(\\.\\d*)?([eE][+-]?\\d+)?') | Re:('[+-]?\\d+')}} Suppress:("of")} Forward: ...}[source]¶
-
id_selection_expression
= {Suppress:("id") {Re:('[+-]?\\d+')}... [ {Re:('[+-]?\\d+')}...]...}[source]¶
-
molid_selection_expression
= {Suppress:({"molid" | "mol"}) {Re:('[+-]?\\d+')}... [ {Re:('[+-]?\\d+')}...]...}[source]¶
-
region_expression
= {{{{{{{{{"Parallelepiped" | "Cuboid"} | "Cube"} | "Ellipsoid"} | "Sphere"} | "Cylinder"} | "Cone"} Suppress:("(")} Forward: ...} Suppress:(")")}[source]¶
-
type_selection_expression
= {Suppress:("type") {Re:('[+-]?\\d+')}... [ {Re:('[+-]?\\d+')}...]...}[source]¶
-
within_selection_expression
= {Suppress:("within") {{{{Re:('[+-]?\\d+(\\.\\d*)?([eE][+-]?\\d+)?') | Re:('[+-]?\\d+')} Suppress:("of")} Forward: ...} | {{{{{{{{{"Parallelepiped" | "Cuboid"} | "Cube"} | "Ellipsoid"} | "Sphere"} | "Cylinder"} | "Cone"} Suppress:("(")} Forward: ...} Suppress:(")")}}}[source]¶
Methods Documentation
-
parse
(selstr=None, **kwargs)[source] [edit on github][source]¶ Parse
selstr
.
-
todict
()[source] [edit on github][source]¶
-