DTNotation¶
Classes for working with DT notation representing planar projections of curves.
API documentation¶
-
class
pyknotid.representations.dtnotation.DTNotation(code)[source]¶ Bases:
objectClass 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
GaussCodeobject, you can pass this string when initialising it, or useDTNotation.representation().
-
representation(**kwargs)[source]¶ Returns a
Representationrepresenting the same DT code. The crossing orientations (and therefore resulting chirality) are chosen arbitrarily.
-