Skip to content

Commit 1da60d3

Browse files
committed
remove prints
1 parent 18f27fe commit 1da60d3

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

src/navigate/controller/sub_controllers/multi_position_controller.py

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,15 @@ def set_positions(self, positions):
9696
9797
Parameters
9898
----------
99-
positions : dict
99+
positions : [[]]
100100
positions to be set
101101
102102
Example
103103
-------
104-
>>> positions = {
105-
>>> 0: {'x': 0, 'y': 0, 'z': 0, 'theta': 0, 'f': 0},
106-
>>> 1: {'x': 1, 'y': 1, 'z': 1, 'theta': 1, 'f': 1},
107-
>>> 2: {'x': 2, 'y': 2, 'z': 2, 'theta': 2, 'f': 2}}
104+
>>> positions = [
105+
>>> [0, 0, 0, 0, 0],
106+
>>> [1, 1, 1, 1, 1],
107+
>>> [2, 2, 2, 2, 2]]
108108
>>> set_positions(positions)
109109
"""
110110
axis_dict = {"x": "X", "y": "Y", "z": "Z", "theta": "R", "f": "F"}
@@ -128,24 +128,16 @@ def get_positions(self):
128128
-------
129129
>>> get_positions()
130130
"""
131-
axis_dict = {"X": "x", "Y": "y", "Z": "z", "R": "theta", "F": "f"}
132131
positions = []
133-
print("*** get positions!")
134132
rows = self.table.model.df.shape[0]
135-
print("*** row count:", rows)
136133
for i in range(rows):
137134
temp = list(self.table.model.df.iloc[i])
138-
print("*** multiposition table:", temp)
139135
if (
140136
len(
141137
list(filter(lambda v: type(v) == float and not math.isnan(v), temp))
142138
)
143139
== 5
144140
):
145-
# temp = dict(self.table.model.df.iloc[i])
146-
# positions.append({})
147-
# for k in axis_dict:
148-
# positions[i][axis_dict[k]] = temp[k]
149141
positions.append(temp)
150142
return positions
151143

0 commit comments

Comments
 (0)