@@ -33,18 +33,6 @@ def __str__(self):
33
33
s += "]"
34
34
return s
35
35
36
- def _repr_pretty_ (self , p , cycle ):
37
- """
38
- Pretty string for IPython (superclass method)
39
-
40
- :param p: pretty printer handle (ignored)
41
- :param cycle: pretty printer flag (ignored)
42
-
43
- """
44
- # see https://ipython.org/ipython-doc/stable/api/generated/IPython.lib.pretty.html
45
-
46
- p .text (f"{ i } :\n { str (x )} " )
47
-
48
36
49
37
class PoERevolute (PoELink ):
50
38
def __init__ (self , axis , point , ** kwargs ):
@@ -114,26 +102,14 @@ def __str__(self):
114
102
return s
115
103
116
104
def __repr__ (self ):
117
- s = "PoERobot([\n "
118
- for j , link in enumerate (self ):
119
- s += repr (link ) + ","
120
- s += "],\n "
105
+ s = "PoERobot([\n "
106
+ s += "\n " .join ([" " + repr (link ) + "," for link in self ])
107
+ s += "\n ],\n "
121
108
s += f" T0=SE3({ np .array_repr (self .T0 .A )} ),\n "
122
- s += f" name={ self .name } ,\n "
109
+ s += f" name=\" { self .name } \" ,\n "
123
110
s += ")"
124
111
return s
125
112
126
- def _repr_pretty_ (self , p , cycle ):
127
- """
128
- Pretty string for IPython (superclass method)
129
-
130
- :param p: pretty printer handle (ignored)
131
- :param cycle: pretty printer flag (ignored)
132
-
133
- """
134
- # see https://ipython.org/ipython-doc/stable/api/generated/IPython.lib.pretty.html
135
-
136
- p .text (f"{ i } :\n { str (x )} " )
137
113
138
114
def nbranches (self ):
139
115
return 0
0 commit comments