コード例 #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"))
コード例 #2
0
ファイル: test_special.py プロジェクト: janpipek/physt
 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"))
コード例 #3
0
ファイル: test_special.py プロジェクト: janpipek/physt
 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"))
コード例 #4
0
ファイル: test_special.py プロジェクト: janpipek/physt
 def test_radius(self):
     h = special.cylindrical_histogram([[1,2,3], [2, 3, 4]])
     proj = h.projection("phi", "z")
     assert proj.radius > 1
コード例 #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"))
コード例 #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