Skip to content
Snippets Groups Projects
Commit e97c2f94 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

correct material in Tests/Functional/PyCore/transform_cube.py

parent ff0a8409
No related branches found
No related tags found
1 merge request!363Further improvements to Python code as suggested by Pylint
......@@ -41,7 +41,7 @@ class RotationsCubeTest(unittest.TestCase):
layout.addParticle(particle)
vacuum_layer = Layer(mAmbience)
middle_layer = Layer(mSubstrate, 50)
middle_layer = Layer(mMiddle, 50)
substrate = Layer(mSubstrate)
if add_to == "Vacuum":
......@@ -99,7 +99,8 @@ class RotationsCubeTest(unittest.TestCase):
diff = self.get_difference(reference_data, data_to_test[i])
print("{0} #{1} diff {2:.2e}".format(
self.testRotationZ.__name__, i, diff))
if (diff > 1e-10): isSuccess = False
if diff > 1e-10:
isSuccess = False
self.assertTrue(isSuccess)
......@@ -131,7 +132,8 @@ class RotationsCubeTest(unittest.TestCase):
diff = self.get_difference(reference_data, data_to_test[i])
print("{0} #{1} diff {2:.2e}".format(
self.testRotationY.__name__, i, diff))
if (diff > 1e-10): isSuccess = False
if diff > 1e-10:
isSuccess = False
self.assertTrue(isSuccess)
......@@ -163,7 +165,8 @@ class RotationsCubeTest(unittest.TestCase):
diff = self.get_difference(reference_data, data_to_test[i])
print("{0} #{1} diff {2:.2e}".format(
self.testRotationX.__name__, i, diff))
if (diff > 1e-10): isSuccess = False
if diff > 1e-10:
isSuccess = False
self.assertTrue(isSuccess)
......@@ -187,7 +190,8 @@ class RotationsCubeTest(unittest.TestCase):
"add_to_middle")
print("{0} #{1} diff {2:.2e}".format(
self.testRotationX.__name__, i, diff))
if (diff > 1e-10): isSuccess = False
if diff > 1e-10:
isSuccess = False
self.assertTrue(isSuccess)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment