Skip to content

Commit 5206b0e

Browse files
committed
Add a setup, fix up tests.
1 parent cef6f11 commit 5206b0e

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from distutils.core import setup
22

33
setup(
4-
name='UsbArm',
5-
version='0.1',
4+
name='usb_arm',
5+
version='0.1.1',
66
packages=['usb_arm',],
77
license='Creative Commons By Attribution Share-Alike v3.0',
88
long_description=open('readme.md').read(),

usb_arm/__init__.py

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,12 @@ def doActions(self, actions):
9898
if not isinstance(action[0], BitPattern):
9999
raise ValueError("Not a valid action")
100100
#Do
101-
try:
102-
for action in actions:
103-
if len(action) == 2:
104-
time = action[1]
105-
else:
106-
time = 1
107-
self.move(action[0], time)
108-
finally:
109-
self.move(Stop)
101+
for action in actions:
102+
if len(action) == 2:
103+
time = action[1]
104+
else:
105+
time = 1
106+
self.move(action[0], time)
110107

111108
def makeGrabAndMove(baseDir):
112109
return [[CloseGrips, 1.1],
@@ -116,5 +113,5 @@ def makeGrabAndMove(baseDir):
116113
[OpenGrips]]
117114

118115
blink = [[LedOn, 0.5], [Stop, 0.5]] * 3
119-
block_left = makeGrabAndMove(BaseClockWise, 0.4) + blink
120-
block_right = makeGrabAndMove(BaseCtrClockWise, 0.4) + blink
116+
block_left = makeGrabAndMove(BaseClockWise) + blink
117+
block_right = makeGrabAndMove(BaseCtrClockWise) + blink

0 commit comments

Comments
 (0)