Skip to content
Snippets Groups Projects
Commit 5f67fbe1 authored by Olivier Bertrand's avatar Olivier Bertrand
Browse files

Correct for PEP8

parent ce18b24a
No related branches found
No related tags found
No related merge requests found
""" """
Example on how to use the rendering module Example on how to use the rendering module
""" """
import tempfile
import numpy as np import numpy as np
import os
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
from matplotlib.patches import ConnectionPatch from matplotlib.patches import ConnectionPatch
from navipy.database import DataBaseLoad from navipy.database import DataBaseLoad
......
...@@ -9,8 +9,8 @@ class TestEuler(unittest.TestCase): ...@@ -9,8 +9,8 @@ class TestEuler(unittest.TestCase):
condition = dict() condition = dict()
for key, _ in constants._AXES2TUPLE.items(): for key, _ in constants._AXES2TUPLE.items():
rotation_0 = euler.matrix(1, 2, 3, key) rotation_0 = euler.matrix(1, 2, 3, key)
angles = euler.from_matrix(rotation_0, key) ai, aj, ak = euler.from_matrix(rotation_0, key)
rotation_1 = euler.matrix(*angles, key) rotation_1 = euler.matrix(ai, aj, ak, key)
condition[key] = np.allclose(rotation_0, condition[key] = np.allclose(rotation_0,
rotation_1) rotation_1)
if condition[key] is False: if condition[key] is False:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment