Exemple #1
0
 def test_projection_types(self):
     h = special.cylindrical_histogram([[1, 2, 3], [2, 3, 4]])
     assert special.CylinderSurfaceHistogram == type(
         h.projection("phi", "z"))
     assert special.CylinderSurfaceHistogram == type(
         h.projection("z", "phi"))
     assert special.PolarHistogram == type(h.projection("rho", "phi"))
     assert special.PolarHistogram == type(h.projection("phi", "rho"))
Exemple #2
0
 def test_projection_types(self):
     h = special.cylindrical_histogram([[1, 2, 3], [2, 3, 4]])
     assert special.CylinderSurfaceHistogram == type(h.projection("phi", "z"))
     assert special.CylinderSurfaceHistogram == type(h.projection("z", "phi"))
     assert special.PolarHistogram == type(h.projection("rho", "phi"))
     assert special.PolarHistogram == type(h.projection("phi", "rho"))
Exemple #3
0
 def test_projection_types(self):
     h = special.cylindrical_histogram([[1, 2, 3], [2, 3, 4]])
     proj = h.projection("phi", "z")
     assert special.AzimuthalHistogram == type(proj.projection("phi"))
Exemple #4
0
 def test_radius(self):
     h = special.cylindrical_histogram([[1,2,3], [2, 3, 4]])
     proj = h.projection("phi", "z")
     assert proj.radius > 1
Exemple #5
0
 def test_projection_types(self):
     h = special.cylindrical_histogram([[1, 2, 3], [2, 3, 4]])
     proj = h.projection("phi", "z")
     assert special.AzimuthalHistogram == type(proj.projection("phi"))
Exemple #6
0
 def test_radius(self):
     h = special.cylindrical_histogram([[1, 2, 3], [2, 3, 4]])
     proj = h.projection("phi", "z")
     assert proj.radius > 1