fix swift import
@@ -1207,12 +1207,14 @@ class Robot(ABC, DynamicsMixin, IKMixin):
'Plotting in Swift is not implemented for DHRobots yet')
try:
# yes, use it
- from roboticstoolbox.backends.Swift import Swift
+ from roboticstoolbox.backends.swift import Swift
env = Swift()
return env
except ModuleNotFoundError:
if backend == 'swift':
- print('Swift is not installed, install it using pip or conda')
+ print(
+ 'Swift is not installed, '
+ 'install it using pip or conda')
backend = 'pyplot'
elif backend == 'vpython' or default == 'vpython': # pragma nocover
@@ -1227,7 +1229,9 @@ class Robot(ABC, DynamicsMixin, IKMixin):
return env
except ModuleNotFoundError:
if backend == 'vpython':
- print('VPython is not installed, install it using pip or conda')
+ print(
+ 'VPython is not installed, '
+ 'install it using pip or conda')
backend = 'pyplot'
if backend is None:
