DTNotation¶
Classes for working with DT notation representing planar projections of curves.
API documentation¶
-
class
pyknotid.representations.dtnotation.
DTNotation
(code)[source]¶ Bases:
object
Class for containing and manipulation DT notation.
Parameters: code (str or array-like) – The DT code. Must be either a string of entries separated by spaces, or an array. -
gauss_code_string
()[source]¶ Returns a string containing a Gauss code, in the format accepted by
GaussCode
.To get a
GaussCode
object, you can pass this string when initialising it, or useDTNotation.representation()
.
-
representation
(**kwargs)[source]¶ Returns a
Representation
representing the same DT code. The crossing orientations (and therefore resulting chirality) are chosen arbitrarily.
-