Skip to content
Snippets Groups Projects
Commit 5dca5863 authored by Johannes Schumann's avatar Johannes Schumann
Browse files

renames

parent e3db91f7
No related branches found
No related tags found
1 merge request!47Resolve "Muon Propagation"
Pipeline #38858 passed with warnings
......@@ -46,14 +46,14 @@ class TestSphere(unittest.TestCase):
def test_limited_zenith(self):
np.random.seed(1234)
geometry = CanVolume(zenith=(-0.4, 0.5))
geometry = CANVolume(zenith=(-0.4, 0.5))
self.assertAlmostEqual(geometry.solid_angle, 5.654866776461628)
direction = geometry.random_dir()
self.assertAlmostEqual(direction[1], 0.15989789393584863)
geometry = CanVolume(zenith=(0.1, 0.3))
geometry = CANVolume(zenith=(0.1, 0.3))
direction = geometry.random_dir()
self.assertAlmostEqual(direction[1], 0.25707171674275386)
geometry = CanVolume(zenith=(-0.3, -0.2))
geometry = CANVolume(zenith=(-0.3, -0.2))
direction = geometry.random_dir()
self.assertAlmostEqual(direction[1], -0.2727407394717358)
......@@ -61,7 +61,7 @@ class TestSphere(unittest.TestCase):
class TestCan(unittest.TestCase):
def setUp(self):
self.detector_geometry = CanVolume()
self.detector_geometry = CANVolume()
def test_volume(self):
volume = self.detector_geometry.volume
......@@ -76,7 +76,7 @@ class TestCan(unittest.TestCase):
def test_position(self):
np.random.seed(1234)
detector_geometry = CanVolume(detector_center=(100, 100))
detector_geometry = CANVolume(detector_center=(100, 100))
pos = detector_geometry.random_pos()
self.assertAlmostEqual(pos[0], -27.07940486491587)
self.assertAlmostEqual(pos[1], -22.54421157149173)
......@@ -84,13 +84,13 @@ class TestCan(unittest.TestCase):
def test_limited_zenith(self):
np.random.seed(1234)
geometry = CanVolume(zenith=(-0.4, 0.5))
geometry = CANVolume(zenith=(-0.4, 0.5))
self.assertAlmostEqual(geometry.solid_angle, 5.654866776461628)
direction = geometry.random_dir()
self.assertAlmostEqual(direction[1], 0.15989789393584863)
geometry = CanVolume(zenith=(0.1, 0.3))
geometry = CANVolume(zenith=(0.1, 0.3))
direction = geometry.random_dir()
self.assertAlmostEqual(direction[1], 0.25707171674275386)
geometry = CanVolume(zenith=(-0.3, -0.2))
geometry = CANVolume(zenith=(-0.3, -0.2))
direction = geometry.random_dir()
self.assertAlmostEqual(direction[1], -0.2727407394717358)
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