Skip to content
Snippets Groups Projects
Select Git revision
  • e965283a60c03c3215a3f7037920b5b67bf371ce
  • master default
  • Omar
  • Jack
4 results

test_registration.py

Blame
  • test_registration.py 559 B
    """
    Testing suite for the core module
    """
    
    import unittest
    import os
    import numpy as np
    from random import randrange
    
    
    class TestCore(unittest.TestCase):
        ACCURACY = 5  # The number of decimal places to value accuracy for - needed due to floating point inaccuracies
    
        def setUp(self):
            """Runs before each unit test.
            Sets up the AmpObject object using "sample_stl_sphere_BIN.stl".
            """
            from AmpScan.core import AmpObject
            stl_path = self.get_path("sample_stl_sphere_BIN.stl")
            self.amp = AmpObject(stl_path)