import sys
import os
sys.path.append('..')
import unittest
from ddt import ddt, data, unpack
import numpy as np

from src.neuralNetwork.dataTools import createSymmetricVector

@ddt
class TestAnalyticGeometryFunctions(unittest.TestCase):
    @data((np.array([1, 1]), np.array([0.5, 0]), np.array([0, 0.5])))
    @unpack
    def testcreateSymmetricVector(self, symmetricAxis, originalVector, groundTruth):
        self.assertTrue(np.allclose(createSymmetricVector(symmetricAxis, originalVector), groundTruth, rtol=1e-05, atol=1e-08))


if __name__ == "__main__":
    unittest.main()

1ea784b76185dab95559d8603867fb6eae826ec6
<mask token>


@ddt
class TestAnalyticGeometryFunctions(unittest.TestCase):
    <mask token>


<mask token>

<mask token>


@ddt
class TestAnalyticGeometryFunctions(unittest.TestCase):

    @data((np.array([1, 1]), np.array([0.5, 0]), np.array([0, 0.5])))
    @unpack
    def testcreateSymmetricVector(self, symmetricAxis, originalVector,
        groundTruth):
        self.assertTrue(np.allclose(createSymmetricVector(symmetricAxis,
            originalVector), groundTruth, rtol=1e-05, atol=1e-08))


<mask token>

<mask token>
sys.path.append('..')
<mask token>


@ddt
class TestAnalyticGeometryFunctions(unittest.TestCase):

    @data((np.array([1, 1]), np.array([0.5, 0]), np.array([0, 0.5])))
    @unpack
    def testcreateSymmetricVector(self, symmetricAxis, originalVector,
        groundTruth):
        self.assertTrue(np.allclose(createSymmetricVector(symmetricAxis,
            originalVector), groundTruth, rtol=1e-05, atol=1e-08))


if __name__ == '__main__':
    unittest.main()

import sys
import os
sys.path.append('..')
import unittest
from ddt import ddt, data, unpack
import numpy as np
from src.neuralNetwork.dataTools import createSymmetricVector


@ddt
class TestAnalyticGeometryFunctions(unittest.TestCase):

    @data((np.array([1, 1]), np.array([0.5, 0]), np.array([0, 0.5])))
    @unpack
    def testcreateSymmetricVector(self, symmetricAxis, originalVector,
        groundTruth):
        self.assertTrue(np.allclose(createSymmetricVector(symmetricAxis,
            originalVector), groundTruth, rtol=1e-05, atol=1e-08))


if __name__ == '__main__':
    unittest.main()

import sys
import os
sys.path.append('..')
import unittest
from ddt import ddt, data, unpack
import numpy as np

from src.neuralNetwork.dataTools import createSymmetricVector

@ddt
class TestAnalyticGeometryFunctions(unittest.TestCase):
    @data((np.array([1, 1]), np.array([0.5, 0]), np.array([0, 0.5])))
    @unpack
    def testcreateSymmetricVector(self, symmetricAxis, originalVector, groundTruth):
        self.assertTrue(np.allclose(createSymmetricVector(symmetricAxis, originalVector), groundTruth, rtol=1e-05, atol=1e-08))


if __name__ == "__main__":
    unittest.main()
