diff --git a/tests/convert/Geant42FlukaConversion.py b/tests/convert/Geant42FlukaConversion.py index 80d575fa4..6ce76c022 100644 --- a/tests/convert/Geant42FlukaConversion.py +++ b/tests/convert/Geant42FlukaConversion.py @@ -37,97 +37,157 @@ class Geant42FlukaConversionTests(_unittest.TestCase): def test_Geant42FlukaConversion_T001_Box(self): - T001_geant4Box2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T001_geant4Box2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T002_Tubs(self): - T002_geant4Tubs2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T002_geant4Tubs2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T003_CutTubs(self): - T003_geant4CutTubs2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T003_geant4CutTubs2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T004_Cons(self): - T004_geant4Cons2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T004_geant4Cons2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T005_Para(self): - T005_geant4Para2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T005_geant4Para2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T006_Tdr(self): - T006_geant4Trd2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T006_geant4Trd2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T007_Trap(self): - T007_geant4Trap2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T007_geant4Trap2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T008_Sphere(self): - T008_geant4Sphere2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T008_geant4Sphere2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T009_Orb(self): - T009_geant4Orb2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T009_geant4Orb2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T010_Torus(self): - T010_geant4Torus2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T010_geant4Torus2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T011_Polycone(self): - T011_geant4Polycone2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T011_geant4Polycone2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T012_GenericPolycone(self): - T012_geant4GenericPolycone2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T012_geant4GenericPolycone2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T013_Polyhedra(self): - T013_geant4Polyhedra2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T013_geant4Polyhedra2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T014_GenericPolyhedra(self): - T014_geant4GenericPolyhedra2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T014_geant4GenericPolyhedra2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T015_EllipticalTube(self): - T015_geant4EllipticalTube2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T015_geant4EllipticalTube2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T016_Ellipsoid(self): - T016_geant4Ellipsoid2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T016_geant4Ellipsoid2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T017_EllipticalCone(self): - T017_geant4EllipticalCone2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T017_geant4EllipticalCone2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T018_Paraboloid(self): - T018_geant4Paraboloid2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T018_geant4Paraboloid2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T019_Hyperboloid(self): - T019_geant4Hyperboloid2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T019_geant4Hyperboloid2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T020_Tet(self): - T020_geant4Tet2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T020_geant4Tet2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T021_ExtrudedSolid(self): - T021_geant4ExtrudedSolid2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T021_geant4ExtrudedSolid2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) # def test_Geant42FlukaConversion_T026_GenericTrap(self): # T026_geant4GenericTrap2Fluka.Test(False,False,True) def test_Geant42FlukaConversion_T028_Union(self): - T028_geant4Union2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T028_geant4Union2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T029_Subtraction(self): - T029_geant4Subtraction2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T029_geant4Subtraction2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T030_Intersection(self): - T030_geant4Intersection2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T030_geant4Intersection2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T105_Assembly(self): - T105_geant4Assembly2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T105_geant4Assembly2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T106_replica_x(self): - T106_geant4ReplicaX2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T106_geant4ReplicaX2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T107_replica_y(self): - T107_geant4ReplicaY2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T107_geant4ReplicaY2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T108_replica_z(self): - T108_geant4ReplicaZ2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T108_geant4ReplicaZ2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T109_replica_phi(self): - T109_geant4ReplicaPhi2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T109_geant4ReplicaPhi2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T110_replica_rho(self): - T110_geant4ReplicaRho2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T110_geant4ReplicaRho2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) if __name__ == "__main__": diff --git a/tests/convert/T001_geant4Box2Fluka.py b/tests/convert/T001_geant4Box2Fluka.py index e795be2c0..e7f23cfea 100644 --- a/tests/convert/T001_geant4Box2Fluka.py +++ b/tests/convert/T001_geant4Box2Fluka.py @@ -55,7 +55,7 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): freg = _convert.geant4Reg2FlukaReg(reg) w = _fluka.Writer() w.addDetector(freg) - w.write(outputPath / "T001_geant4Box2Fluka.inp") + w.write(outputPath / "T001_geant4Box2Fluka.inp") # flair output file f = _fluka.Flair("T001_geant4Box2Fluka.inp", extentBB) diff --git a/tests/convert/T002_geant4Tubs2Fluka.py b/tests/convert/T002_geant4Tubs2Fluka.py index 5ee8f176b..101aa1445 100644 --- a/tests/convert/T002_geant4Tubs2Fluka.py +++ b/tests/convert/T002_geant4Tubs2Fluka.py @@ -8,12 +8,9 @@ def Test(vis=True, interactive=False, fluka=True, outputPath=None): - - if not outputPath: outputPath = _pl.Path(__file__).parent - # registry reg = _g4.Registry() @@ -58,11 +55,11 @@ def Test(vis=True, interactive=False, fluka=True, outputPath=None): freg = _convert.geant4Reg2FlukaReg(reg) w = _fluka.Writer() w.addDetector(freg) - w.write(outputPath / "T002_geant4Tubs2Fluka.inp") + w.write(outputPath / "T002_geant4Tubs2Fluka.inp") # flair output file f = _fluka.Flair("T002_geant4Tubs2Fluka.inp", extentBB) - f.write(outputPath / "T002_geant4Tubs2Fluka.flair") + f.write(outputPath / "T002_geant4Tubs2Fluka.flair") if vis: v = _vi.VtkViewer() diff --git a/tests/convert/T003_geant4CutTubs2Fluka.py b/tests/convert/T003_geant4CutTubs2Fluka.py index 1bc5e46b9..5c86fa3f5 100644 --- a/tests/convert/T003_geant4CutTubs2Fluka.py +++ b/tests/convert/T003_geant4CutTubs2Fluka.py @@ -8,7 +8,6 @@ def Test(vis=True, interactive=False, fluka=True, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent @@ -73,11 +72,11 @@ def Test(vis=True, interactive=False, fluka=True, outputPath=None): freg = _convert.geant4Reg2FlukaReg(reg) w = _fluka.Writer() w.addDetector(freg) - w.write(outputPath / "T003_geant4CutTubs2Fluka.inp") + w.write(outputPath / "T003_geant4CutTubs2Fluka.inp") # flair output file f = _fluka.Flair("T003_geant4CutTubs2Fluka.inp", extentBB) - f.write(outputPath / "T003_geant4CutTubs2Fluka.flair") + f.write(outputPath / "T003_geant4CutTubs2Fluka.flair") if vis: v = _vi.VtkViewer() diff --git a/tests/convert/T004_geant4Cons2Fluka.py b/tests/convert/T004_geant4Cons2Fluka.py index d81f87213..00b01e564 100644 --- a/tests/convert/T004_geant4Cons2Fluka.py +++ b/tests/convert/T004_geant4Cons2Fluka.py @@ -17,7 +17,6 @@ def Test(vis=False, interactive=False, fluka=True, type=normal, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent @@ -76,14 +75,14 @@ def Test(vis=False, interactive=False, fluka=True, type=normal, outputPath=None) # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T004_geant4Cons2Fluka.gdml") + w.write(outputPath / "T004_geant4Cons2Fluka.gdml") # fluka conversion if fluka: freg = _convert.geant4Reg2FlukaReg(reg) w = _fluka.Writer() w.addDetector(freg) - w.write(outputPath / "T004_geant4Cons2Fluka.inp") + w.write(outputPath / "T004_geant4Cons2Fluka.inp") # visualisation v = None diff --git a/tests/convert/T005_geant4Para2Fluka.py b/tests/convert/T005_geant4Para2Fluka.py index 9302298ee..e389ff428 100644 --- a/tests/convert/T005_geant4Para2Fluka.py +++ b/tests/convert/T005_geant4Para2Fluka.py @@ -8,7 +8,6 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent @@ -90,7 +89,7 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T005_geant4Para2Fluka.gdml") + w.write(outputPath / "T005_geant4Para2Fluka.gdml") # fluka conversion if fluka: diff --git a/tests/convert/T006_geant4Trd2Fluka.py b/tests/convert/T006_geant4Trd2Fluka.py index bccf5a89b..29acfaa88 100644 --- a/tests/convert/T006_geant4Trd2Fluka.py +++ b/tests/convert/T006_geant4Trd2Fluka.py @@ -9,7 +9,6 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent @@ -56,11 +55,11 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): freg = _convert.geant4Reg2FlukaReg(reg) w = _fluka.Writer() w.addDetector(freg) - w.write(outputPath / "T006_geant4Trd2Fluka.inp") + w.write(outputPath / "T006_geant4Trd2Fluka.inp") # flair output file f = _fluka.Flair("T006_geant4Trd2Fluka.inp", extentBB) - f.write(outputPath / "T006_geant4Trd2Fluka.flair") + f.write(outputPath / "T006_geant4Trd2Fluka.flair") if vis: v = _vi.VtkViewer() diff --git a/tests/convert/T007_geant4Trap2Fluka.py b/tests/convert/T007_geant4Trap2Fluka.py index 150d666a9..e800a56d7 100644 --- a/tests/convert/T007_geant4Trap2Fluka.py +++ b/tests/convert/T007_geant4Trap2Fluka.py @@ -9,7 +9,6 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent @@ -71,7 +70,7 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): # flair output file f = _fluka.Flair("T007_geant4Trap2Fluka.inp", extentBB) - f.write(outputPath / "T007_geant4Trap2Fluka.flair") + f.write(outputPath / "T007_geant4Trap2Fluka.flair") if vis: v = _vi.VtkViewer() diff --git a/tests/convert/T008_geant4Sphere2Fluka.py b/tests/convert/T008_geant4Sphere2Fluka.py index ec3dafb75..38e96dd31 100644 --- a/tests/convert/T008_geant4Sphere2Fluka.py +++ b/tests/convert/T008_geant4Sphere2Fluka.py @@ -7,8 +7,9 @@ import pyg4ometry.fluka as _fluka -def Test(vis=False, interactive=False, fluka=True, n_slice=10, n_stack=10, outputPath=None): - +def Test( + vis=False, interactive=False, fluka=True, n_slice=10, n_stack=10, outputPath=None +): if not outputPath: outputPath = _pl.Path(__file__).parent diff --git a/tests/convert/T009_geant4Orb2Fluka.py b/tests/convert/T009_geant4Orb2Fluka.py index b8cc3f45e..4ee6770e5 100644 --- a/tests/convert/T009_geant4Orb2Fluka.py +++ b/tests/convert/T009_geant4Orb2Fluka.py @@ -7,8 +7,9 @@ import pyg4ometry.visualisation as _vi -def Test(vis=False, interactive=False, fluka=True, n_slice=16, n_stack=16, outputPath=None): - +def Test( + vis=False, interactive=False, fluka=True, n_slice=16, n_stack=16, outputPath=None +): if not outputPath: outputPath = _pl.Path(__file__).parent @@ -44,7 +45,7 @@ def Test(vis=False, interactive=False, fluka=True, n_slice=16, n_stack=16, outpu # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T009_geant4Orb2Fluka.gdml") + w.write(outputPath / "T009_geant4Orb2Fluka.gdml") # fluka conversion if fluka: @@ -55,7 +56,7 @@ def Test(vis=False, interactive=False, fluka=True, n_slice=16, n_stack=16, outpu # flair output file f = _fluka.Flair("T0019_geant4Orb2Fluka.inp", extentBB) - f.write(outputPath / "T009_geant4Orb2Fluka.flair") + f.write(outputPath / "T009_geant4Orb2Fluka.flair") if vis: v = _vi.VtkViewer() diff --git a/tests/convert/T010_geant4Torus2Fluka.py b/tests/convert/T010_geant4Torus2Fluka.py index ce201d96c..58735a531 100644 --- a/tests/convert/T010_geant4Torus2Fluka.py +++ b/tests/convert/T010_geant4Torus2Fluka.py @@ -8,8 +8,9 @@ import numpy as _np -def Test(vis=False, interactive=False, fluka=True, n_slice=30, n_stack=30, outputPath=None): - +def Test( + vis=False, interactive=False, fluka=True, n_slice=30, n_stack=30, outputPath=None +): if not outputPath: outputPath = _pl.Path(__file__).parent @@ -62,7 +63,7 @@ def Test(vis=False, interactive=False, fluka=True, n_slice=30, n_stack=30, outpu # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T010_geant4Torus2Fluka.gdml") + w.write(outputPath / "T010_geant4Torus2Fluka.gdml") # fluka conversion if fluka: diff --git a/tests/convert/T011_geant4Polycone2Fluka.py b/tests/convert/T011_geant4Polycone2Fluka.py index 351bb3ac1..eea491cdd 100644 --- a/tests/convert/T011_geant4Polycone2Fluka.py +++ b/tests/convert/T011_geant4Polycone2Fluka.py @@ -9,7 +9,6 @@ def Test(vis=False, interactive=False, fluka=True, n_slice=10, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent @@ -65,7 +64,7 @@ def Test(vis=False, interactive=False, fluka=True, n_slice=10, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T011_geant4Polycone2Fluka.gdml") + w.write(outputPath / "T011_geant4Polycone2Fluka.gdml") # fluka conversion if fluka: @@ -74,12 +73,9 @@ def Test(vis=False, interactive=False, fluka=True, n_slice=10, outputPath=None): w.addDetector(freg) w.write(outputPath / "T011_geant4Polycone2Fluka.inp") - # flair output file f = _fluka.Flair("T011_geant4Polycone2Fluka.inp", extentBB) - f.write( - _os.path.join(outputPath / "T011_geant4Polycone2Fluka.flair") - ) + f.write(_os.path.join(outputPath / "T011_geant4Polycone2Fluka.flair")) if vis: v = _vi.VtkViewer() diff --git a/tests/convert/T012_geant4GenericPolycone2Fluka.py b/tests/convert/T012_geant4GenericPolycone2Fluka.py index 8f1816bcf..73c5e3e60 100644 --- a/tests/convert/T012_geant4GenericPolycone2Fluka.py +++ b/tests/convert/T012_geant4GenericPolycone2Fluka.py @@ -11,7 +11,6 @@ def Test(vis=False, interactive=False, fluka=True, type=normal, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent @@ -88,7 +87,7 @@ def Test(vis=False, interactive=False, fluka=True, type=normal, outputPath=None) # flair output file f = _fluka.Flair("T012_geant4GenericPolycone2Fluka.inp", extentBB) - f.write(outputPath / "T012_geant4GenericPolycone2Fluka.flair") + f.write(outputPath / "T012_geant4GenericPolycone2Fluka.flair") if vis: v = _vi.VtkViewer() diff --git a/tests/convert/T013_geant4Polyhedra2Fluka.py b/tests/convert/T013_geant4Polyhedra2Fluka.py index ea8b2fab4..47f5c427e 100644 --- a/tests/convert/T013_geant4Polyhedra2Fluka.py +++ b/tests/convert/T013_geant4Polyhedra2Fluka.py @@ -9,7 +9,6 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent @@ -69,11 +68,11 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): freg = _convert.geant4Reg2FlukaReg(reg) w = _fluka.Writer() w.addDetector(freg) - w.write(outputPath / "T013_geant4Polyhedra2Fluka.inp") + w.write(outputPath / "T013_geant4Polyhedra2Fluka.inp") # flair output file f = _fluka.Flair("T013_geant4Polyhedra2Fluka.inp", extentBB) - f.write(outputPath / "T013_geant4Polyhedra2Fluka.flair") + f.write(outputPath / "T013_geant4Polyhedra2Fluka.flair") if vis: v = _vi.VtkViewer() diff --git a/tests/convert/T014_geant4GenericPolyhedra2Fluka.py b/tests/convert/T014_geant4GenericPolyhedra2Fluka.py index ea3361644..472965b56 100644 --- a/tests/convert/T014_geant4GenericPolyhedra2Fluka.py +++ b/tests/convert/T014_geant4GenericPolyhedra2Fluka.py @@ -11,7 +11,6 @@ def Test(vis=False, interactive=False, fluka=True, type=normal, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent diff --git a/tests/convert/T015_geant4EllipticalTube2Fluka.py b/tests/convert/T015_geant4EllipticalTube2Fluka.py index c809bdda3..85600942e 100644 --- a/tests/convert/T015_geant4EllipticalTube2Fluka.py +++ b/tests/convert/T015_geant4EllipticalTube2Fluka.py @@ -9,7 +9,6 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent diff --git a/tests/convert/T016_geant4Ellipsoid2Fluka.py b/tests/convert/T016_geant4Ellipsoid2Fluka.py index 47951a656..84e9d64cb 100644 --- a/tests/convert/T016_geant4Ellipsoid2Fluka.py +++ b/tests/convert/T016_geant4Ellipsoid2Fluka.py @@ -8,8 +8,9 @@ import numpy as _np -def Test(vis=False, interactive=False, fluka=True, n_slice=10, n_stack=10, outputPath=None): - +def Test( + vis=False, interactive=False, fluka=True, n_slice=10, n_stack=10, outputPath=None +): if not outputPath: outputPath = _pl.Path(__file__).parent @@ -52,7 +53,7 @@ def Test(vis=False, interactive=False, fluka=True, n_slice=10, n_stack=10, outpu # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T016_geant4Ellipsoid2Fluka.gdml") + w.write(outputPath / "T016_geant4Ellipsoid2Fluka.gdml") # fluka conversion if fluka: @@ -63,7 +64,7 @@ def Test(vis=False, interactive=False, fluka=True, n_slice=10, n_stack=10, outpu # flair output file f = _fluka.Flair("T016_geant4Ellipsoid2Fluka.inp", extentBB) - f.write(outputPath / "T016_geant4Ellipsoid2Fluka.flair") + f.write(outputPath / "T016_geant4Ellipsoid2Fluka.flair") if vis: v = _vi.VtkViewer() diff --git a/tests/convert/T017_geant4EllipticalCone2Fluka.py b/tests/convert/T017_geant4EllipticalCone2Fluka.py index ccf2ed940..c84c336bd 100644 --- a/tests/convert/T017_geant4EllipticalCone2Fluka.py +++ b/tests/convert/T017_geant4EllipticalCone2Fluka.py @@ -11,8 +11,9 @@ zcut_outofrange = 2 -def Test(vis=False, interactive=False, fluka=True, type=normal, n_slice=16, outputPath=None): - +def Test( + vis=False, interactive=False, fluka=True, type=normal, n_slice=16, outputPath=None +): if not outputPath: outputPath = _pl.Path(__file__).parent @@ -64,11 +65,11 @@ def Test(vis=False, interactive=False, fluka=True, type=normal, n_slice=16, outp freg = _convert.geant4Reg2FlukaReg(reg) w = _fluka.Writer() w.addDetector(freg) - w.write(outputPath / "T017_geant4EllipticalCone2Fluka.inp") + w.write(outputPath / "T017_geant4EllipticalCone2Fluka.inp") # flair output file f = _fluka.Flair("T017_geant4EllipticalCone2Fluka.inp", extentBB) - f.write(outputPath / "T017_geant4EllipticalCone2Fluka.flair") + f.write(outputPath / "T017_geant4EllipticalCone2Fluka.flair") if vis: v = _vi.VtkViewer() diff --git a/tests/convert/T018_geant4Paraboloid2Fluka.py b/tests/convert/T018_geant4Paraboloid2Fluka.py index d54e53837..296566867 100644 --- a/tests/convert/T018_geant4Paraboloid2Fluka.py +++ b/tests/convert/T018_geant4Paraboloid2Fluka.py @@ -8,8 +8,9 @@ import numpy as _np -def Test(vis=False, interactive=False, fluka=True, n_slice=16, n_stack=16, outputPath=None): - +def Test( + vis=False, interactive=False, fluka=True, n_slice=16, n_stack=16, outputPath=None +): if not outputPath: outputPath = _pl.Path(__file__).parent @@ -48,8 +49,7 @@ def Test(vis=False, interactive=False, fluka=True, n_slice=16, n_stack=16, outpu # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath /"T018_geant4Paraboloid2Fluka.gdml") - + w.write(outputPath / "T018_geant4Paraboloid2Fluka.gdml") # fluka conversion if fluka: diff --git a/tests/convert/T019_geant4Hyperboloid2Fluka.py b/tests/convert/T019_geant4Hyperboloid2Fluka.py index b89ef793a..ff44e8728 100644 --- a/tests/convert/T019_geant4Hyperboloid2Fluka.py +++ b/tests/convert/T019_geant4Hyperboloid2Fluka.py @@ -12,8 +12,15 @@ rmin_gt_rmax = 3 -def Test(vis=False, interactive=False, fluka=True, type=normal, n_slice=16, n_stack=16, outputPath=None): - +def Test( + vis=False, + interactive=False, + fluka=True, + type=normal, + n_slice=16, + n_stack=16, + outputPath=None, +): if not outputPath: outputPath = _pl.Path(__file__).parent @@ -70,11 +77,11 @@ def Test(vis=False, interactive=False, fluka=True, type=normal, n_slice=16, n_st freg = _convert.geant4Reg2FlukaReg(reg) w = _fluka.Writer() w.addDetector(freg) - w.write(outputPath / "T019_geant4Hyperboloid2Fluka.inp") + w.write(outputPath / "T019_geant4Hyperboloid2Fluka.inp") # flair output file f = _fluka.Flair("T019_geant4Hyperboloid2Fluka.inp", extentBB) - f.write(outputPath / "T019_geant4Hyperboloid2Fluka.flair") + f.write(outputPath / "T019_geant4Hyperboloid2Fluka.flair") if vis: v = _vi.VtkViewer() diff --git a/tests/convert/T020_geant4Tet2Fluka.py b/tests/convert/T020_geant4Tet2Fluka.py index 1cefd3402..f5ad72e26 100644 --- a/tests/convert/T020_geant4Tet2Fluka.py +++ b/tests/convert/T020_geant4Tet2Fluka.py @@ -9,7 +9,6 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent # registry @@ -55,11 +54,11 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): freg = _convert.geant4Reg2FlukaReg(reg) w = _fluka.Writer() w.addDetector(freg) - w.write(outputPath / "T020_geant4Tet2Fluka.inp") + w.write(outputPath / "T020_geant4Tet2Fluka.inp") # flair output file f = _fluka.Flair("T020_geant4Tet2Fluka.inp", extentBB) - f.write(outputPath / "T020_geant4Tet2Fluka.flair") + f.write(outputPath / "T020_geant4Tet2Fluka.flair") if vis: v = _vi.VtkViewer() diff --git a/tests/convert/T021_geant4ExtrudedSolid2Fluka.py b/tests/convert/T021_geant4ExtrudedSolid2Fluka.py index 0eb2dcc9a..f91ed732a 100644 --- a/tests/convert/T021_geant4ExtrudedSolid2Fluka.py +++ b/tests/convert/T021_geant4ExtrudedSolid2Fluka.py @@ -8,7 +8,6 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent @@ -89,7 +88,7 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T021_geant4ExtrudedSolid2Fluka.gdml") + w.write(outputPath / "T021_geant4ExtrudedSolid2Fluka.gdml") # fluka conversion if fluka: diff --git a/tests/convert/T022_geant4TwistedBox2Fluka.py b/tests/convert/T022_geant4TwistedBox2Fluka.py index 05d6d884a..68d735d00 100644 --- a/tests/convert/T022_geant4TwistedBox2Fluka.py +++ b/tests/convert/T022_geant4TwistedBox2Fluka.py @@ -9,7 +9,6 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent @@ -47,7 +46,7 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T022_geant4TwistedBox2Fluka.gdml") + w.write(outputPath / "T022_geant4TwistedBox2Fluka.gdml") # fluka conversion if fluka: @@ -56,7 +55,6 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): w.addDetector(freg) w.write(outputPath / "T022_geant4TwistedBox2Fluka.inp") - # flair output file f = _fluka.Flair("T022_geant4TwistedBox2Fluka.inp", extentBB) f.write(outputPath / "T022_geant4TwistedBox2Fluka.flair") diff --git a/tests/convert/T024_geant4TwistedTrd2Fluka.py b/tests/convert/T024_geant4TwistedTrd2Fluka.py index 0ca4277c6..650a4a7db 100644 --- a/tests/convert/T024_geant4TwistedTrd2Fluka.py +++ b/tests/convert/T024_geant4TwistedTrd2Fluka.py @@ -9,7 +9,6 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent @@ -51,20 +50,18 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T023_geant4TwistedTrd2Fluka.gdml") - + w.write(outputPath / "T023_geant4TwistedTrd2Fluka.gdml") # fluka conversion if fluka: freg = _convert.geant4Reg2FlukaReg(reg) w = _fluka.Writer() w.addDetector(freg) - w.write(outputPath / "T023_geantTwistedTrd2Fluka.inp") - + w.write(outputPath / "T023_geantTwistedTrd2Fluka.inp") # flair output file f = _fluka.Flair("T024_geant4TwistedTrd2Fluka.inp", extentBB) - f.write(outputPath / "T024_geant4TwistedTrd2Fluka.flair") + f.write(outputPath / "T024_geant4TwistedTrd2Fluka.flair") if vis: v = _vi.VtkViewer() diff --git a/tests/convert/T025_geant4TwistedTubs2Fluka.py b/tests/convert/T025_geant4TwistedTubs2Fluka.py index 48c82626d..1d0fa7a38 100644 --- a/tests/convert/T025_geant4TwistedTubs2Fluka.py +++ b/tests/convert/T025_geant4TwistedTubs2Fluka.py @@ -9,7 +9,6 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent @@ -51,18 +50,18 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T025_geant4TwistedTubs2Fluka.gdml") + w.write(outputPath / "T025_geant4TwistedTubs2Fluka.gdml") # fluka conversion if fluka: freg = _convert.geant4Reg2FlukaReg(reg) w = _fluka.Writer() w.addDetector(freg) - w.write(outputPath / "T025_geant4TwistedTubs2Fluka.inp") + w.write(outputPath / "T025_geant4TwistedTubs2Fluka.inp") # flair output file f = _fluka.Flair("T025_geant4TwiistedTubs2Fluka.inp", extentBB) - f.write(outputPath / "T025_geant4TwistedTubs2Fluka.flair") + f.write(outputPath / "T025_geant4TwistedTubs2Fluka.flair") if vis: v = _vi.VtkViewer() diff --git a/tests/convert/T026_geant4GenericTrap2Fluka.py b/tests/convert/T026_geant4GenericTrap2Fluka.py index 71469b46d..550d2086f 100644 --- a/tests/convert/T026_geant4GenericTrap2Fluka.py +++ b/tests/convert/T026_geant4GenericTrap2Fluka.py @@ -12,7 +12,6 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent @@ -101,7 +100,7 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): freg = _convert.geant4Reg2FlukaReg(reg) w = _fluka.Writer() w.addDetector(freg) - w.write(outputPath /"T026_geant4GenericTrap2Fluka.inp") + w.write(outputPath / "T026_geant4GenericTrap2Fluka.inp") # flair output file f = _fluka.Flair("T026_geant4GenericTrap2Fluka.inp", extentBB) diff --git a/tests/convert/T028_geant4Union2Fluka.py b/tests/convert/T028_geant4Union2Fluka.py index 10201bb17..79183ac16 100644 --- a/tests/convert/T028_geant4Union2Fluka.py +++ b/tests/convert/T028_geant4Union2Fluka.py @@ -9,7 +9,6 @@ def Test(vis=False, interactive=False, fluka=True, disjoint=False, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent @@ -74,7 +73,7 @@ def Test(vis=False, interactive=False, fluka=True, disjoint=False, outputPath=No freg = _convert.geant4Reg2FlukaReg(reg) w = _fluka.Writer() w.addDetector(freg) - w.write(outputPath / "T028_geant4Union2Fluka.inp") + w.write(outputPath / "T028_geant4Union2Fluka.inp") if __name__ == "__main__": diff --git a/tests/convert/T029_geant4Subtraction2Fluka.py b/tests/convert/T029_geant4Subtraction2Fluka.py index 3407f1ffc..165277077 100644 --- a/tests/convert/T029_geant4Subtraction2Fluka.py +++ b/tests/convert/T029_geant4Subtraction2Fluka.py @@ -9,7 +9,6 @@ def Test(vis=False, interactive=False, fluka=True, nullMesh=False, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent diff --git a/tests/convert/T030_geant4Intersection2Fluka.py b/tests/convert/T030_geant4Intersection2Fluka.py index a511eb2a3..58be58038 100644 --- a/tests/convert/T030_geant4Intersection2Fluka.py +++ b/tests/convert/T030_geant4Intersection2Fluka.py @@ -12,7 +12,6 @@ def Test(vis=False, interactive=False, fluka=True, type=normal, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent @@ -67,7 +66,7 @@ def Test(vis=False, interactive=False, fluka=True, type=normal, outputPath=None) freg = _convert.geant4Reg2FlukaReg(reg) w = _fluka.Writer() w.addDetector(freg) - w.write(outputPath / "T030_geant4Intersection2Fluka.inp") + w.write(outputPath / "T030_geant4Intersection2Fluka.inp") if __name__ == "__main__": diff --git a/tests/convert/T105_geant4Assembly2Fluka.py b/tests/convert/T105_geant4Assembly2Fluka.py index c64708380..edb18d2b6 100644 --- a/tests/convert/T105_geant4Assembly2Fluka.py +++ b/tests/convert/T105_geant4Assembly2Fluka.py @@ -8,7 +8,6 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent @@ -53,7 +52,7 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T105_geant4Assembly2Fluka.gdml") + w.write(outputPath / "T105_geant4Assembly2Fluka.gdml") # fluka conversion if fluka: @@ -64,7 +63,7 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): # flair output file f = _fluka.Flair("T105_geant4Assembly2Fluka.inp", extentBB) - f.write(outputPath / "T105_geant4Assembly2Fluka.flair") + f.write(outputPath / "T105_geant4Assembly2Fluka.flair") # visualisation v = None diff --git a/tests/convert/T106_geant4ReplicaX2Fluka.py b/tests/convert/T106_geant4ReplicaX2Fluka.py index d6896b991..827bb7f7f 100644 --- a/tests/convert/T106_geant4ReplicaX2Fluka.py +++ b/tests/convert/T106_geant4ReplicaX2Fluka.py @@ -8,7 +8,6 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent @@ -52,7 +51,7 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T106_geant4ReplicaX2Fluka.gdml") + w.write(outputPath / "T106_geant4ReplicaX2Fluka.gdml") # test __repr__ str(mbl) @@ -70,7 +69,7 @@ def Test(vis=False, interactive=False, fluka=True, outputPath=None): # flair output file f = _fluka.Flair("T106_geant4ReplicaX2Fluka.inp", extentBB) - f.write(outputPath / "T106_geant4ReplicaX2Fluka.flair") + f.write(outputPath / "T106_geant4ReplicaX2Fluka.flair") # visualisation v = None diff --git a/tests/convert/T107_geant4ReplicaY2Fluka.py b/tests/convert/T107_geant4ReplicaY2Fluka.py index b8432a08f..76994906b 100644 --- a/tests/convert/T107_geant4ReplicaY2Fluka.py +++ b/tests/convert/T107_geant4ReplicaY2Fluka.py @@ -8,7 +8,6 @@ def Test(vis=False, interactive=False, fluka=False, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent @@ -52,7 +51,7 @@ def Test(vis=False, interactive=False, fluka=False, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T107_geant4ReplicaY2Fluka.gdml") + w.write(outputPath / "T107_geant4ReplicaY2Fluka.gdml") # test __repr__ str(mbl) @@ -70,8 +69,7 @@ def Test(vis=False, interactive=False, fluka=False, outputPath=None): # flair output file f = _fluka.Flair("T107_geant4ReplicaY2Fluka.inp", extentBB) - f.write(outputPath / "T107_geant4ReplicaY2Fluka.flair") - + f.write(outputPath / "T107_geant4ReplicaY2Fluka.flair") # visualisation v = None diff --git a/tests/convert/T108_geant4ReplicaZ2Fluka.py b/tests/convert/T108_geant4ReplicaZ2Fluka.py index e44135edd..b59765e3f 100644 --- a/tests/convert/T108_geant4ReplicaZ2Fluka.py +++ b/tests/convert/T108_geant4ReplicaZ2Fluka.py @@ -8,7 +8,6 @@ def Test(vis=False, interactive=False, fluka=False, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent @@ -70,7 +69,7 @@ def Test(vis=False, interactive=False, fluka=False, outputPath=None): # flair output file f = _fluka.Flair("T108_geant4ReplicaZ2Fluka.inp", extentBB) - f.write(outputPath / "T108_geant4ReplicaZ2Fluka.flair") + f.write(outputPath / "T108_geant4ReplicaZ2Fluka.flair") # visualisation v = None diff --git a/tests/convert/T109_geant4ReplicaPhi2Fluka.py b/tests/convert/T109_geant4ReplicaPhi2Fluka.py index 06c272cf6..b349336e6 100644 --- a/tests/convert/T109_geant4ReplicaPhi2Fluka.py +++ b/tests/convert/T109_geant4ReplicaPhi2Fluka.py @@ -8,7 +8,6 @@ def Test(vis=False, interactive=False, fluka=False, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent @@ -68,7 +67,7 @@ def Test(vis=False, interactive=False, fluka=False, outputPath=None): freg = _convert.geant4Reg2FlukaReg(reg) w = _fluka.Writer() w.addDetector(freg) - w.write(outputPath / "T109_geant4ReplicaPhi2Fluka.inp") + w.write(outputPath / "T109_geant4ReplicaPhi2Fluka.inp") # flair output file f = _fluka.Flair("T109_geant4ReplicaPhi2Fluka.inp", extentBB) diff --git a/tests/convert/T110_geant4ReplicaRho2Fluka.py b/tests/convert/T110_geant4ReplicaRho2Fluka.py index bdcd619ea..030184066 100644 --- a/tests/convert/T110_geant4ReplicaRho2Fluka.py +++ b/tests/convert/T110_geant4ReplicaRho2Fluka.py @@ -8,7 +8,6 @@ def Test(vis=False, interactive=False, fluka=False, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent @@ -66,7 +65,7 @@ def Test(vis=False, interactive=False, fluka=False, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T110_geant4ReplicaRho2Fluka.gdml") + w.write(outputPath / "T110_geant4ReplicaRho2Fluka.gdml") # test __repr__ str(mtl) @@ -84,7 +83,7 @@ def Test(vis=False, interactive=False, fluka=False, outputPath=None): # flair output file f = _fluka.Flair("T110_geant4ReplicaRho2Fluka.inp", extentBB) - f.write(outputPath / "T110_geant4ReplicaRho2Fluka.flair") + f.write(outputPath / "T110_geant4ReplicaRho2Fluka.flair") # visualisation v = None diff --git a/tests/convert/test_geant42Fluka.py b/tests/convert/test_geant42Fluka.py index 0d0e3a73b..07fd51316 100644 --- a/tests/convert/test_geant42Fluka.py +++ b/tests/convert/test_geant42Fluka.py @@ -36,87 +36,129 @@ def test_Geant42FlukaConversion_T001_Box(tmptestdir): - T001_geant4Box2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T001_geant4Box2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T002_Tubs(tmptestdir): - T002_geant4Tubs2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T002_geant4Tubs2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T003_CutTubs(tmptestdir): - T003_geant4CutTubs2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T003_geant4CutTubs2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T004_Cons(tmptestdir): - T004_geant4Cons2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T004_geant4Cons2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T005_Para(tmptestdir): - T005_geant4Para2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T005_geant4Para2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T006_Tdr(tmptestdir): - T006_geant4Trd2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T006_geant4Trd2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T007_Trap(tmptestdir): - T007_geant4Trap2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T007_geant4Trap2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T008_Sphere(tmptestdir): - T008_geant4Sphere2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T008_geant4Sphere2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T009_Orb(tmptestdir): - T009_geant4Orb2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T009_geant4Orb2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T010_Torus(tmptestdir): - T010_geant4Torus2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T010_geant4Torus2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T011_Polycone(tmptestdir): - T011_geant4Polycone2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T011_geant4Polycone2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T012_GenericPolycone(tmptestdir): - T012_geant4GenericPolycone2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T012_geant4GenericPolycone2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T013_Polyhedra(tmptestdir): - T013_geant4Polyhedra2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T013_geant4Polyhedra2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T014_GenericPolyhedra(tmptestdir): - T014_geant4GenericPolyhedra2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T014_geant4GenericPolyhedra2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T015_EllipticalTube(tmptestdir): - T015_geant4EllipticalTube2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T015_geant4EllipticalTube2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T016_Ellipsoid(tmptestdir): - T016_geant4Ellipsoid2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T016_geant4Ellipsoid2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T017_EllipticalCone(tmptestdir): - T017_geant4EllipticalCone2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T017_geant4EllipticalCone2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T018_Paraboloid(tmptestdir): - T018_geant4Paraboloid2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T018_geant4Paraboloid2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T019_Hyperboloid(tmptestdir): - T019_geant4Hyperboloid2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T019_geant4Hyperboloid2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T020_Tet(tmptestdir): - T020_geant4Tet2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T020_geant4Tet2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T021_ExtrudedSolid(tmptestdir): - T021_geant4ExtrudedSolid2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T021_geant4ExtrudedSolid2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) # def test_Geant42FlukaConversion_T026_GenericTrap(tmptestdir): @@ -124,36 +166,54 @@ def test_Geant42FlukaConversion_T021_ExtrudedSolid(tmptestdir): def test_Geant42FlukaConversion_T028_Union(tmptestdir): - T028_geant4Union2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T028_geant4Union2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T029_Subtraction(tmptestdir): - T029_geant4Subtraction2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T029_geant4Subtraction2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T030_Intersection(tmptestdir): - T030_geant4Intersection2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T030_geant4Intersection2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T105_Assembly(tmptestdir): - T105_geant4Assembly2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T105_geant4Assembly2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T106_replica_x(tmptestdir): - T106_geant4ReplicaX2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T106_geant4ReplicaX2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T107_replica_y(tmptestdir): - T107_geant4ReplicaY2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T107_geant4ReplicaY2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T108_replica_z(tmptestdir): - T108_geant4ReplicaZ2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T108_geant4ReplicaZ2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T109_replica_phi(tmptestdir): - T109_geant4ReplicaPhi2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T109_geant4ReplicaPhi2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) def test_Geant42FlukaConversion_T110_replica_rho(tmptestdir): - T110_geant4ReplicaRho2Fluka.Test(vis=False, interactive=False, fluka=True, outputPath=tmptestdir) + T110_geant4ReplicaRho2Fluka.Test( + vis=False, interactive=False, fluka=True, outputPath=tmptestdir + ) diff --git a/tests/geant4/T001_Box.py b/tests/geant4/T001_Box.py index 4b4bd41fb..846e14062 100644 --- a/tests/geant4/T001_Box.py +++ b/tests/geant4/T001_Box.py @@ -8,7 +8,6 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent @@ -53,7 +52,7 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T001_Box.gdml" ) + w.write(outputPath / "T001_Box.gdml") # test __repr__ str(bs) diff --git a/tests/geant4/T002_Tubs.py b/tests/geant4/T002_Tubs.py index 2cf9fd70e..5668023e5 100644 --- a/tests/geant4/T002_Tubs.py +++ b/tests/geant4/T002_Tubs.py @@ -4,9 +4,11 @@ import pyg4ometry.geant4 as _g4 import pyg4ometry.visualisation as _vi -def Test(vis=False, interactive=False, n_slice=16, writeNISTMaterials=False, outputPath = None): - if not outputPath : +def Test( + vis=False, interactive=False, n_slice=16, writeNISTMaterials=False, outputPath=None +): + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -86,7 +88,7 @@ def Test(vis=False, interactive=False, n_slice=16, writeNISTMaterials=False, out # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath /"T002_Tubs.gdml") + w.write(outputPath / "T002_Tubs.gdml") # test __repr__ str(ts) diff --git a/tests/geant4/T0031_CutTubs_number.py b/tests/geant4/T0031_CutTubs_number.py index e699056f1..c592a3427 100644 --- a/tests/geant4/T0031_CutTubs_number.py +++ b/tests/geant4/T0031_CutTubs_number.py @@ -9,8 +9,7 @@ def Test(vis=False, interactive=False, type=normal, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -71,7 +70,7 @@ def Test(vis=False, interactive=False, type=normal, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T0031_CutTubs_numbers.gdml") + w.write(outputPath / "T0031_CutTubs_numbers.gdml") # test __repr__ str(cts) diff --git a/tests/geant4/T0032_CutTubs_string.py b/tests/geant4/T0032_CutTubs_string.py index 244a1dfc5..eb5aca9d1 100644 --- a/tests/geant4/T0032_CutTubs_string.py +++ b/tests/geant4/T0032_CutTubs_string.py @@ -9,8 +9,7 @@ def Test(vis=False, interactive=False, type=normal, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() diff --git a/tests/geant4/T0033_CutTubs_expression.py b/tests/geant4/T0033_CutTubs_expression.py index c705869b4..0ef84f21e 100644 --- a/tests/geant4/T0033_CutTubs_expression.py +++ b/tests/geant4/T0033_CutTubs_expression.py @@ -9,8 +9,7 @@ def Test(vis=False, interactive=False, type=normal, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() diff --git a/tests/geant4/T0034_CutTubs_DefineTree.py b/tests/geant4/T0034_CutTubs_DefineTree.py index e89a07f37..60dcb2656 100644 --- a/tests/geant4/T0034_CutTubs_DefineTree.py +++ b/tests/geant4/T0034_CutTubs_DefineTree.py @@ -9,8 +9,7 @@ def Test(vis=False, interactive=False, type=normal, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -86,7 +85,7 @@ def Test(vis=False, interactive=False, type=normal, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T0034_CutTubs_DefineTree.gdml") + w.write(outputPath / "T0034_CutTubs_DefineTree.gdml") # test __repr__ str(cts) diff --git a/tests/geant4/T003_CutTubs.py b/tests/geant4/T003_CutTubs.py index a180ae0fc..65f76c8f7 100644 --- a/tests/geant4/T003_CutTubs.py +++ b/tests/geant4/T003_CutTubs.py @@ -9,10 +9,14 @@ def Test( - vis=False, interactive=False, type=normal, n_slice=16, writeNISTMaterials=False, outputPath=None + vis=False, + interactive=False, + type=normal, + n_slice=16, + writeNISTMaterials=False, + outputPath=None, ): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -118,7 +122,7 @@ def Test( # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T003_CutTubs.gdml") + w.write(outputPath / "T003_CutTubs.gdml") # test __repr__ str(cts) diff --git a/tests/geant4/T004_Cons.py b/tests/geant4/T004_Cons.py index e94846471..07b5ada88 100644 --- a/tests/geant4/T004_Cons.py +++ b/tests/geant4/T004_Cons.py @@ -15,10 +15,14 @@ def Test( - vis=False, interactive=False, type=normal, n_slice=10, writeNISTMaterials=False, outputPath=None + vis=False, + interactive=False, + type=normal, + n_slice=10, + writeNISTMaterials=False, + outputPath=None, ): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -126,7 +130,6 @@ def Test( w.addDetector(reg) w.write(outputPath / "T004_Cons.gdml") - # test __repr__ str(cs) diff --git a/tests/geant4/T005_Para.py b/tests/geant4/T005_Para.py index f3068b1fe..f27aa3b36 100644 --- a/tests/geant4/T005_Para.py +++ b/tests/geant4/T005_Para.py @@ -6,8 +6,7 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() diff --git a/tests/geant4/T006_Trd.py b/tests/geant4/T006_Trd.py index 0bcfd3568..de0b94940 100644 --- a/tests/geant4/T006_Trd.py +++ b/tests/geant4/T006_Trd.py @@ -6,7 +6,6 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent @@ -59,7 +58,6 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None w.addDetector(reg) w.write(outputPath / "T006_Trd.gdml") - # test __repr__ str(ts) diff --git a/tests/geant4/T007_Trap.py b/tests/geant4/T007_Trap.py index 7c955916e..1827e6713 100644 --- a/tests/geant4/T007_Trap.py +++ b/tests/geant4/T007_Trap.py @@ -7,8 +7,7 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -121,7 +120,6 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None w.addDetector(reg) w.write(outputPath / "T007_Trap.gdml") - # test __repr__ str(ts) diff --git a/tests/geant4/T008_Sphere.py b/tests/geant4/T008_Sphere.py index dc6533b27..835409321 100644 --- a/tests/geant4/T008_Sphere.py +++ b/tests/geant4/T008_Sphere.py @@ -6,10 +6,14 @@ def Test( - vis=False, interactive=False, n_slice=10, n_stack=10, writeNISTMaterials=False, outputPath=None + vis=False, + interactive=False, + n_slice=10, + n_stack=10, + writeNISTMaterials=False, + outputPath=None, ): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -103,7 +107,6 @@ def Test( w.addDetector(reg) w.write(outputPath / "T008_Sphere.gdml") - # test __repr__ str(ss) diff --git a/tests/geant4/T009_Orb.py b/tests/geant4/T009_Orb.py index 1f74791a7..23207eb07 100644 --- a/tests/geant4/T009_Orb.py +++ b/tests/geant4/T009_Orb.py @@ -6,10 +6,14 @@ def Test( - vis=False, interactive=False, n_slice=16, n_stack=16, writeNISTMaterials=False, outputPath=None + vis=False, + interactive=False, + n_slice=16, + n_stack=16, + writeNISTMaterials=False, + outputPath=None, ): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -49,7 +53,6 @@ def Test( w.addDetector(reg) w.write(outputPath / "T009_Orb.gdml") - # test __repr__ str(os) diff --git a/tests/geant4/T010_Torus.py b/tests/geant4/T010_Torus.py index 0fc475335..43e4dc738 100644 --- a/tests/geant4/T010_Torus.py +++ b/tests/geant4/T010_Torus.py @@ -6,13 +6,16 @@ def Test( - vis=False, interactive=False, n_slice=20, n_stack=20, writeNISTMaterials=False, outputPath=None + vis=False, + interactive=False, + n_slice=20, + n_stack=20, + writeNISTMaterials=False, + outputPath=None, ): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent - reg = _g4.Registry() # defines @@ -119,7 +122,7 @@ def Test( # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T010_Torus.gdml") + w.write(outputPath / "T010_Torus.gdml") # test __repr__ str(ts1) diff --git a/tests/geant4/T011_Polycone.py b/tests/geant4/T011_Polycone.py index 2c397e6b7..6b26cef41 100644 --- a/tests/geant4/T011_Polycone.py +++ b/tests/geant4/T011_Polycone.py @@ -5,9 +5,10 @@ import pyg4ometry.visualisation as _vi -def Test(vis=False, interactive=False, n_slice=64, writeNISTMaterials=False, outputPath=None): - - if not outputPath : +def Test( + vis=False, interactive=False, n_slice=64, writeNISTMaterials=False, outputPath=None +): + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -83,7 +84,6 @@ def Test(vis=False, interactive=False, n_slice=64, writeNISTMaterials=False, out w.addDetector(reg) w.write(outputPath / "T011_Polycone.gdml") - # test __repr__ str(ps) diff --git a/tests/geant4/T012_GenericPolycone.py b/tests/geant4/T012_GenericPolycone.py index b52fffe75..40c843d04 100644 --- a/tests/geant4/T012_GenericPolycone.py +++ b/tests/geant4/T012_GenericPolycone.py @@ -9,10 +9,14 @@ def Test( - vis=False, interactive=False, type=normal, n_slice=64, writeNISTMaterials=False, outputPath=None + vis=False, + interactive=False, + type=normal, + n_slice=64, + writeNISTMaterials=False, + outputPath=None, ): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -111,7 +115,6 @@ def Test( w.addDetector(reg) w.write(outputPath / "T012_GenericPolycone.gdml") - # test __repr__ str(ps) diff --git a/tests/geant4/T013_Polyhedra.py b/tests/geant4/T013_Polyhedra.py index 73be3b602..2ff109d89 100644 --- a/tests/geant4/T013_Polyhedra.py +++ b/tests/geant4/T013_Polyhedra.py @@ -6,8 +6,7 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -82,8 +81,7 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T013_Polyhedra.gdml") - + w.write(outputPath / "T013_Polyhedra.gdml") # test __repr__ str(ps) diff --git a/tests/geant4/T014_GenericPolyhedra.py b/tests/geant4/T014_GenericPolyhedra.py index 0fab693be..210dadb93 100644 --- a/tests/geant4/T014_GenericPolyhedra.py +++ b/tests/geant4/T014_GenericPolyhedra.py @@ -8,9 +8,10 @@ two_planes = 2 -def Test(vis=False, interactive=False, type=normal, writeNISTMaterials=False, outputPath=None): - - if not outputPath : +def Test( + vis=False, interactive=False, type=normal, writeNISTMaterials=False, outputPath=None +): + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -93,7 +94,6 @@ def Test(vis=False, interactive=False, type=normal, writeNISTMaterials=False, ou w.addDetector(reg) w.write(outputPath / "T014_GenericPolyhedra.gdml") - # test __repr__ str(ps) diff --git a/tests/geant4/T015_EllipticalTube.py b/tests/geant4/T015_EllipticalTube.py index befb49093..18ccb6dce 100644 --- a/tests/geant4/T015_EllipticalTube.py +++ b/tests/geant4/T015_EllipticalTube.py @@ -5,9 +5,10 @@ import pyg4ometry.visualisation as _vi -def Test(vis=False, interactive=False, n_slice=30, writeNISTMaterials=False, outputPath=None): - - if not outputPath : +def Test( + vis=False, interactive=False, n_slice=30, writeNISTMaterials=False, outputPath=None +): + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -52,7 +53,7 @@ def Test(vis=False, interactive=False, n_slice=30, writeNISTMaterials=False, out # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T015_EllipticalTube.gdml") + w.write(outputPath / "T015_EllipticalTube.gdml") # test __repr__ str(es) diff --git a/tests/geant4/T016_Ellipsoid.py b/tests/geant4/T016_Ellipsoid.py index 2a7c9167e..e19aff701 100644 --- a/tests/geant4/T016_Ellipsoid.py +++ b/tests/geant4/T016_Ellipsoid.py @@ -6,13 +6,16 @@ def Test( - vis=False, interactive=False, n_slice=25, n_stack=25, writeNISTMaterials=False, outputPath=None + vis=False, + interactive=False, + n_slice=25, + n_stack=25, + writeNISTMaterials=False, + outputPath=None, ): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent - reg = _g4.Registry() # defines @@ -68,7 +71,6 @@ def Test( w.addDetector(reg) w.write(outputPath / "T016_Ellipsoid.gdml") - # test __repr__ str(es) diff --git a/tests/geant4/T017_EllipticalCone.py b/tests/geant4/T017_EllipticalCone.py index e0696fd1e..788f18e67 100644 --- a/tests/geant4/T017_EllipticalCone.py +++ b/tests/geant4/T017_EllipticalCone.py @@ -9,10 +9,14 @@ def Test( - vis=False, interactive=False, type=normal, n_slice=16, writeNISTMaterials=False, outputPath=None + vis=False, + interactive=False, + type=normal, + n_slice=16, + writeNISTMaterials=False, + outputPath=None, ): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -85,7 +89,6 @@ def Test( w.addDetector(reg) w.write(outputPath / "T017_EllipticalCone.gdml") - # test __repr__ str(es) diff --git a/tests/geant4/T018_Paraboloid.py b/tests/geant4/T018_Paraboloid.py index 030cbecec..857c7b96f 100644 --- a/tests/geant4/T018_Paraboloid.py +++ b/tests/geant4/T018_Paraboloid.py @@ -6,10 +6,14 @@ def Test( - vis=False, interactive=False, n_slice=16, n_stack=16, writeNISTMaterials=False, outputPath=None + vis=False, + interactive=False, + n_slice=16, + n_stack=16, + writeNISTMaterials=False, + outputPath=None, ): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -56,8 +60,7 @@ def Test( # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T018_Paraboloid.gdml") - + w.write(outputPath / "T018_Paraboloid.gdml") # test __repr__ str(ps) diff --git a/tests/geant4/T019_Hyperboloid.py b/tests/geant4/T019_Hyperboloid.py index 08df32727..0fa720104 100644 --- a/tests/geant4/T019_Hyperboloid.py +++ b/tests/geant4/T019_Hyperboloid.py @@ -16,10 +16,9 @@ def Test( n_slice=16, n_stack=16, writeNISTMaterials=False, - outputPath=None + outputPath=None, ): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -95,7 +94,6 @@ def Test( w.addDetector(reg) w.write(outputPath / "T019_Hyperboloid.gdml") - # test __repr__ str(hs) diff --git a/tests/geant4/T020_Tet.py b/tests/geant4/T020_Tet.py index fc2a056eb..39398f582 100644 --- a/tests/geant4/T020_Tet.py +++ b/tests/geant4/T020_Tet.py @@ -6,8 +6,7 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -56,7 +55,6 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None w.addDetector(reg) w.write(outputPath / "T020_Tet.gdml") - # test __repr__ str(ts) diff --git a/tests/geant4/T021_ExtrudedSolid.py b/tests/geant4/T021_ExtrudedSolid.py index f1268828c..4bc9004cf 100644 --- a/tests/geant4/T021_ExtrudedSolid.py +++ b/tests/geant4/T021_ExtrudedSolid.py @@ -6,8 +6,7 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -125,7 +124,6 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None w.addDetector(reg) w.write(outputPath / "T021_ExtrudedSolid.gdml") - # test __repr__ str(xs) diff --git a/tests/geant4/T022_TwistedBox.py b/tests/geant4/T022_TwistedBox.py index 97acb6a1b..503f083c8 100644 --- a/tests/geant4/T022_TwistedBox.py +++ b/tests/geant4/T022_TwistedBox.py @@ -6,8 +6,7 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -60,8 +59,7 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T022_TwistedBox.gdml") - + w.write(outputPath / "T022_TwistedBox.gdml") # test __repr__ str(ts) diff --git a/tests/geant4/T023_TwistedTrap.py b/tests/geant4/T023_TwistedTrap.py index 53ff66dc3..a2434c570 100644 --- a/tests/geant4/T023_TwistedTrap.py +++ b/tests/geant4/T023_TwistedTrap.py @@ -6,8 +6,7 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -108,7 +107,6 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None w.addDetector(reg) w.write(outputPath / "T023_TwistedTrap.gdml") - # test __repr__ str(ts) diff --git a/tests/geant4/T024_TwistedTrd.py b/tests/geant4/T024_TwistedTrd.py index 29c1933b1..6632a2bf1 100644 --- a/tests/geant4/T024_TwistedTrd.py +++ b/tests/geant4/T024_TwistedTrd.py @@ -6,8 +6,7 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -67,8 +66,7 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T024_TwistedTrd.gdml") - + w.write(outputPath / "T024_TwistedTrd.gdml") # test __repr__ str(ts) diff --git a/tests/geant4/T025_TwistedTubs.py b/tests/geant4/T025_TwistedTubs.py index 2faa2c6d0..3110ac0f3 100644 --- a/tests/geant4/T025_TwistedTubs.py +++ b/tests/geant4/T025_TwistedTubs.py @@ -6,8 +6,7 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -69,7 +68,6 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None w.addDetector(reg) w.write(outputPath / "T025_TwistedTubs.gdml") - # test __repr__ str(ts) diff --git a/tests/geant4/T026_GenericTrap.py b/tests/geant4/T026_GenericTrap.py index dd829ab35..cf2bd50cb 100644 --- a/tests/geant4/T026_GenericTrap.py +++ b/tests/geant4/T026_GenericTrap.py @@ -9,8 +9,7 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -150,7 +149,6 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None w.addDetector(reg) w.write(outputPath / "T026_GenericTrap.gdml") - # test __repr__ str(ts) diff --git a/tests/geant4/T028_Union.py b/tests/geant4/T028_Union.py index c662c5cc1..00b6499d2 100644 --- a/tests/geant4/T028_Union.py +++ b/tests/geant4/T028_Union.py @@ -6,9 +6,14 @@ import numpy as _np -def Test(vis=False, interactive=False, disjoint=False, writeNISTMaterials=False, outputPath=None): - - if not outputPath : +def Test( + vis=False, + interactive=False, + disjoint=False, + writeNISTMaterials=False, + outputPath=None, +): + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -81,7 +86,6 @@ def Test(vis=False, interactive=False, disjoint=False, writeNISTMaterials=False, w.addDetector(reg) w.write(outputPath / "T028_Union.gdml") - # test __repr__ str(us) diff --git a/tests/geant4/T029_Subtraction.py b/tests/geant4/T029_Subtraction.py index 5ab212c98..2e407668b 100644 --- a/tests/geant4/T029_Subtraction.py +++ b/tests/geant4/T029_Subtraction.py @@ -7,9 +7,14 @@ import numpy as _np -def Test(vis=False, interactive=False, nullMesh=False, writeNISTMaterials=False, outputPath=None): - - if not outputPath : +def Test( + vis=False, + interactive=False, + nullMesh=False, + writeNISTMaterials=False, + outputPath=None, +): + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -70,7 +75,6 @@ def Test(vis=False, interactive=False, nullMesh=False, writeNISTMaterials=False, w.addDetector(reg) w.write(outputPath / "T029_Subtraction.gdml") - # test __repr__ str(ss) diff --git a/tests/geant4/T030_Intersection.py b/tests/geant4/T030_Intersection.py index 3c8827a1e..286756d76 100644 --- a/tests/geant4/T030_Intersection.py +++ b/tests/geant4/T030_Intersection.py @@ -9,9 +9,10 @@ non_intersecting = 2 -def Test(vis=False, interactive=False, type=normal, writeNISTMaterials=False, outputPath=None): - - if not outputPath : +def Test( + vis=False, interactive=False, type=normal, writeNISTMaterials=False, outputPath=None +): + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -69,8 +70,7 @@ def Test(vis=False, interactive=False, type=normal, writeNISTMaterials=False, ou # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T030_Intersection.gdml") - + w.write(outputPath / "T030_Intersection.gdml") # test __repr__ str(ns) diff --git a/tests/geant4/T031_MultiUnion.py b/tests/geant4/T031_MultiUnion.py index 84828b667..8d2616c71 100644 --- a/tests/geant4/T031_MultiUnion.py +++ b/tests/geant4/T031_MultiUnion.py @@ -8,8 +8,7 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -70,7 +69,6 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None w.addDetector(reg) w.write(outputPath / "T031_MultiUnion.gdml") - # test __repr__ str(mu) diff --git a/tests/geant4/T032_Scaled.py b/tests/geant4/T032_Scaled.py index 7999a9c86..60a8a5939 100644 --- a/tests/geant4/T032_Scaled.py +++ b/tests/geant4/T032_Scaled.py @@ -6,8 +6,7 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -52,8 +51,7 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T032_Scaled.gdml") - + w.write(outputPath / "T032_Scaled.gdml") # test __repr__ str(bs) diff --git a/tests/geant4/T033_TessellatedSolid.py b/tests/geant4/T033_TessellatedSolid.py index 0d897fcdc..1fa04cd4c 100644 --- a/tests/geant4/T033_TessellatedSolid.py +++ b/tests/geant4/T033_TessellatedSolid.py @@ -6,8 +6,7 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -50,8 +49,7 @@ def Test(vis=False, interactive=False, writeNISTMaterials=False, outputPath=None # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T033_TessellatedSolid.gdml") - + w.write(outputPath / "T033_TessellatedSolid.gdml") # test __repr__ str(xtess) diff --git a/tests/geant4/T101_physical_logical.py b/tests/geant4/T101_physical_logical.py index 463ae7d2c..3130fb404 100644 --- a/tests/geant4/T101_physical_logical.py +++ b/tests/geant4/T101_physical_logical.py @@ -6,8 +6,7 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() diff --git a/tests/geant4/T102_overlap_none.py b/tests/geant4/T102_overlap_none.py index 842bfb157..78cb32010 100644 --- a/tests/geant4/T102_overlap_none.py +++ b/tests/geant4/T102_overlap_none.py @@ -6,8 +6,7 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() diff --git a/tests/geant4/T103_overlap_copl.py b/tests/geant4/T103_overlap_copl.py index fd9fa1e2b..853396137 100644 --- a/tests/geant4/T103_overlap_copl.py +++ b/tests/geant4/T103_overlap_copl.py @@ -6,8 +6,7 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() diff --git a/tests/geant4/T103_overlap_copl_simple.py b/tests/geant4/T103_overlap_copl_simple.py index 7e05c25b3..d1941eb78 100644 --- a/tests/geant4/T103_overlap_copl_simple.py +++ b/tests/geant4/T103_overlap_copl_simple.py @@ -6,8 +6,7 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -43,7 +42,7 @@ def Test(vis=False, interactive=False, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T103_overlap_copl.gdml") + w.write(outputPath / "T103_overlap_copl.gdml") # test __repr__ str(bs) diff --git a/tests/geant4/T104_overlap_volu.py b/tests/geant4/T104_overlap_volu.py index dcd55f1c7..3cccb73e2 100644 --- a/tests/geant4/T104_overlap_volu.py +++ b/tests/geant4/T104_overlap_volu.py @@ -6,8 +6,7 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() diff --git a/tests/geant4/T105_assembly.py b/tests/geant4/T105_assembly.py index f623e3d15..c60a8ee38 100644 --- a/tests/geant4/T105_assembly.py +++ b/tests/geant4/T105_assembly.py @@ -6,8 +6,7 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -47,7 +46,7 @@ def Test(vis=False, interactive=False, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T105_assembly.gdml") + w.write(outputPath / "T105_assembly.gdml") # test __repr__ str(wa) diff --git a/tests/geant4/T106_replica_x.py b/tests/geant4/T106_replica_x.py index b4ef1a46a..f49d77574 100644 --- a/tests/geant4/T106_replica_x.py +++ b/tests/geant4/T106_replica_x.py @@ -6,8 +6,7 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -49,7 +48,7 @@ def Test(vis=False, interactive=False, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T106_replica_x.gdml") + w.write(outputPath / "T106_replica_x.gdml") # test __repr__ str(mbl) diff --git a/tests/geant4/T107_replica_y.py b/tests/geant4/T107_replica_y.py index e63a1fd00..cfc86e306 100644 --- a/tests/geant4/T107_replica_y.py +++ b/tests/geant4/T107_replica_y.py @@ -6,8 +6,7 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -49,7 +48,7 @@ def Test(vis=False, interactive=False, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T107_replica_y.gdml") + w.write(outputPath / "T107_replica_y.gdml") # test __repr__ str(mbl) diff --git a/tests/geant4/T108_replica_z.py b/tests/geant4/T108_replica_z.py index c33d9c79d..318d710bd 100644 --- a/tests/geant4/T108_replica_z.py +++ b/tests/geant4/T108_replica_z.py @@ -6,8 +6,7 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -49,7 +48,7 @@ def Test(vis=False, interactive=False, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T107_replica_y.gdml") + w.write(outputPath / "T107_replica_y.gdml") # test __repr__ str(mbl) diff --git a/tests/geant4/T109_replica_phi.py b/tests/geant4/T109_replica_phi.py index 05aa07062..f2307e0b2 100644 --- a/tests/geant4/T109_replica_phi.py +++ b/tests/geant4/T109_replica_phi.py @@ -6,8 +6,7 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -51,7 +50,7 @@ def Test(vis=False, interactive=False, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T109_replica_phi.gdml") + w.write(outputPath / "T109_replica_phi.gdml") # test __repr__ str(mtl) diff --git a/tests/geant4/T110_replica_rho.py b/tests/geant4/T110_replica_rho.py index acc9caa35..c8036a344 100644 --- a/tests/geant4/T110_replica_rho.py +++ b/tests/geant4/T110_replica_rho.py @@ -6,7 +6,6 @@ def Test(vis=False, interactive=False, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent @@ -65,7 +64,6 @@ def Test(vis=False, interactive=False, outputPath=None): w.addDetector(reg) w.write(outputPath / "T110_replica_rho.gdml") - # test __repr__ str(mtl) diff --git a/tests/geant4/T111_parameterised_box.py b/tests/geant4/T111_parameterised_box.py index 7362fbff9..d81bb3475 100644 --- a/tests/geant4/T111_parameterised_box.py +++ b/tests/geant4/T111_parameterised_box.py @@ -6,8 +6,7 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -99,7 +98,6 @@ def Test(vis=False, interactive=False, outputPath=None): w.addDetector(reg) w.write(outputPath / "T111_parameterised_box.gdml") - # test __repr__ str(pbv) diff --git a/tests/geant4/T112_parameterised_tube.py b/tests/geant4/T112_parameterised_tube.py index 7e4193165..f4c719f90 100644 --- a/tests/geant4/T112_parameterised_tube.py +++ b/tests/geant4/T112_parameterised_tube.py @@ -6,8 +6,7 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -121,8 +120,7 @@ def Test(vis=False, interactive=False, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T112_parameterised_tube.gdml") - + w.write(outputPath / "T112_parameterised_tube.gdml") # test __repr__ str(ptv) diff --git a/tests/geant4/T113_parameterised_cone.py b/tests/geant4/T113_parameterised_cone.py index 9e9d16fa2..d2b9d53eb 100644 --- a/tests/geant4/T113_parameterised_cone.py +++ b/tests/geant4/T113_parameterised_cone.py @@ -5,9 +5,8 @@ import pyg4ometry.visualisation as _vi -def Test(vis=False, interactive=False, outputPath = None): - - if not outputPath : +def Test(vis=False, interactive=False, outputPath=None): + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -97,8 +96,7 @@ def Test(vis=False, interactive=False, outputPath = None): # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T113_parameterised_cone.gdml") - + w.write(outputPath / "T113_parameterised_cone.gdml") # test __repr__ str(pbv) diff --git a/tests/geant4/T114_physical_reflection_x.py b/tests/geant4/T114_physical_reflection_x.py index 5deefafba..4d1045b92 100644 --- a/tests/geant4/T114_physical_reflection_x.py +++ b/tests/geant4/T114_physical_reflection_x.py @@ -12,10 +12,9 @@ def Test( n_stack=20, scale=[-1, 1, 1], title="T114_physical_reflection_x", - outputPath=None + outputPath=None, ): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -74,7 +73,6 @@ def Test( w.addDetector(reg) w.write(outputPath / title / ".gdml") - # test __repr__ str(ts) diff --git a/tests/geant4/T201_Materials.py b/tests/geant4/T201_Materials.py index ed6c470ab..96dbf06d8 100644 --- a/tests/geant4/T201_Materials.py +++ b/tests/geant4/T201_Materials.py @@ -5,8 +5,7 @@ def Test_MaterialPredefined(outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -43,13 +42,10 @@ def Test_MaterialPredefined(outputPath=None): w.write(outputPath / "T201_MaterialPredefined.gdml") - def Test_MaterialSingleElement(outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent - reg = _g4.Registry() # defines @@ -88,10 +84,8 @@ def Test_MaterialSingleElement(outputPath=None): w.write(outputPath / "T201_MaterialSingleElement.gdml") - def Test_MaterialCompoundMassFraction(outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -135,8 +129,7 @@ def Test_MaterialCompoundMassFraction(outputPath=None): def Test_MaterialCompoundAtoms(outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -186,10 +179,8 @@ def Test_MaterialCompoundAtoms(outputPath=None): w.write(outputPath / "T201_MaterialCompoundNumberAtoms.gdml") - def Test_MaterialMixture(outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -231,10 +222,8 @@ def Test_MaterialMixture(outputPath=None): w.write(outputPath / "T201_MaterialMixture.gdml") - def Test_MaterialIsotopes(outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -279,10 +268,8 @@ def Test_MaterialIsotopes(outputPath=None): w.write(outputPath / "T201_MaterialIsotopes.gdml") - def Test_MaterialPressureTemperature(outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -335,8 +322,7 @@ def Test_MaterialPressureTemperature(outputPath=None): def Test_MaterialState(outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() diff --git a/tests/geant4/T202_OpticalSurface.py b/tests/geant4/T202_OpticalSurface.py index 4650090bf..3566249b2 100644 --- a/tests/geant4/T202_OpticalSurface.py +++ b/tests/geant4/T202_OpticalSurface.py @@ -5,8 +5,7 @@ def Test_OpticalSurface(outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() diff --git a/tests/geant4/T203_MaterialsRegistry.py b/tests/geant4/T203_MaterialsRegistry.py index 3ea8a5bab..c059aa729 100644 --- a/tests/geant4/T203_MaterialsRegistry.py +++ b/tests/geant4/T203_MaterialsRegistry.py @@ -5,8 +5,7 @@ def Test_MaterialsRegistry(outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() diff --git a/tests/geant4/T204_NIST_Element.py b/tests/geant4/T204_NIST_Element.py index 761663456..9001357a4 100644 --- a/tests/geant4/T204_NIST_Element.py +++ b/tests/geant4/T204_NIST_Element.py @@ -5,8 +5,7 @@ def Test_NIST_Element(outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -44,5 +43,4 @@ def Test_NIST_Element(outputPath=None): w = _gd.Writer() w.addDetector(reg) name = "T204_NIST_Element" - w.write(outputPath / (name+".gdml")) - + w.write(outputPath / (name + ".gdml")) diff --git a/tests/geant4/T205_NIST_Material.py b/tests/geant4/T205_NIST_Material.py index bb8c0e501..2e598e7b5 100644 --- a/tests/geant4/T205_NIST_Material.py +++ b/tests/geant4/T205_NIST_Material.py @@ -5,8 +5,7 @@ def Test_NIST_Material(outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -44,7 +43,7 @@ def Test_NIST_Material(outputPath=None): w = _gd.Writer() w.addDetector(reg) name = "T204_NIST_Element" - w.write(outputPath / (name+".gdml")) + w.write(outputPath / (name + ".gdml")) if __name__ == "__main__": diff --git a/tests/geant4/T400_MergeRegistry.py b/tests/geant4/T400_MergeRegistry.py index 6d09cf358..c16e0f349 100644 --- a/tests/geant4/T400_MergeRegistry.py +++ b/tests/geant4/T400_MergeRegistry.py @@ -52,8 +52,7 @@ def MakeGeometry(size=50, lowOxygen=False): def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() diff --git a/tests/geant4/T401_MergeRegistry_Box.py b/tests/geant4/T401_MergeRegistry_Box.py index 072ec2832..2c9bb075d 100644 --- a/tests/geant4/T401_MergeRegistry_Box.py +++ b/tests/geant4/T401_MergeRegistry_Box.py @@ -8,16 +8,18 @@ import T001_Box -def Test(vis=False, interactive=False, outputPath = None): - +def Test(vis=False, interactive=False, outputPath=None): if not outputPath: outputPath = _pl.Path(__file__).parent - reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) diff --git a/tests/geant4/T402_MergeRegistry_Tubs.py b/tests/geant4/T402_MergeRegistry_Tubs.py index 8036b9767..debbec6c6 100644 --- a/tests/geant4/T402_MergeRegistry_Tubs.py +++ b/tests/geant4/T402_MergeRegistry_Tubs.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T002_Tubs.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T002_Tubs.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) diff --git a/tests/geant4/T403_MergeRegistry_CutTubs.py b/tests/geant4/T403_MergeRegistry_CutTubs.py index 310db9b8c..7d3ef73e1 100644 --- a/tests/geant4/T403_MergeRegistry_CutTubs.py +++ b/tests/geant4/T403_MergeRegistry_CutTubs.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False,outputPath=outputPath)["logicalVolume"] - l2 = T003_CutTubs.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T003_CutTubs.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) diff --git a/tests/geant4/T404_MergeRegistry_Cons.py b/tests/geant4/T404_MergeRegistry_Cons.py index 46b9a2e8a..c2805de2f 100644 --- a/tests/geant4/T404_MergeRegistry_Cons.py +++ b/tests/geant4/T404_MergeRegistry_Cons.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T004_Cons.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T004_Cons.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) @@ -37,7 +40,7 @@ def Test(vis=False, interactive=False, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg0) - w.write(outputPath / "T404_MergeRegistry_Cons.gdml") + w.write(outputPath / "T404_MergeRegistry_Cons.gdml") # test extent of physical volume extentBB = wl.extent(includeBoundingSolid=True) diff --git a/tests/geant4/T405_MergeRegistry_Para.py b/tests/geant4/T405_MergeRegistry_Para.py index aa79a9604..f2fa5cbcc 100644 --- a/tests/geant4/T405_MergeRegistry_Para.py +++ b/tests/geant4/T405_MergeRegistry_Para.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T005_Para.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T005_Para.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) @@ -37,7 +40,7 @@ def Test(vis=False, interactive=False, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg0) - w.write(outputPath / "T405_MergeRegistry_Para.gdml") + w.write(outputPath / "T405_MergeRegistry_Para.gdml") # test extent of physical volume extentBB = wl.extent(includeBoundingSolid=True) diff --git a/tests/geant4/T406_MergeRegistry_Trd.py b/tests/geant4/T406_MergeRegistry_Trd.py index c12fa42f3..65617bc7a 100644 --- a/tests/geant4/T406_MergeRegistry_Trd.py +++ b/tests/geant4/T406_MergeRegistry_Trd.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T006_Trd.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T006_Trd.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) diff --git a/tests/geant4/T407_MergeRegistry_Trap.py b/tests/geant4/T407_MergeRegistry_Trap.py index f6958a5c7..e117d8309 100644 --- a/tests/geant4/T407_MergeRegistry_Trap.py +++ b/tests/geant4/T407_MergeRegistry_Trap.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T007_Trap.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T007_Trap.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) diff --git a/tests/geant4/T408_MergeRegistry_Sphere.py b/tests/geant4/T408_MergeRegistry_Sphere.py index a09e83168..c5cc68327 100644 --- a/tests/geant4/T408_MergeRegistry_Sphere.py +++ b/tests/geant4/T408_MergeRegistry_Sphere.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T008_Sphere.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T008_Sphere.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) diff --git a/tests/geant4/T409_MergeRegistry_Orb.py b/tests/geant4/T409_MergeRegistry_Orb.py index 518091820..6c66aba47 100644 --- a/tests/geant4/T409_MergeRegistry_Orb.py +++ b/tests/geant4/T409_MergeRegistry_Orb.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T009_Orb.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T009_Orb.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) @@ -37,7 +40,7 @@ def Test(vis=False, interactive=False, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg0) - w.write(outputPath / "T409_MergeRegistry_Orb.gdml") + w.write(outputPath / "T409_MergeRegistry_Orb.gdml") # test extent of physical volume extentBB = wl.extent(includeBoundingSolid=True) diff --git a/tests/geant4/T410_MergeRegistry_Torus.py b/tests/geant4/T410_MergeRegistry_Torus.py index f72107218..ceaf8eb06 100644 --- a/tests/geant4/T410_MergeRegistry_Torus.py +++ b/tests/geant4/T410_MergeRegistry_Torus.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T010_Torus.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T010_Torus.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) diff --git a/tests/geant4/T411_MergeRegistry_Polycone.py b/tests/geant4/T411_MergeRegistry_Polycone.py index 39e871360..d488d4045 100644 --- a/tests/geant4/T411_MergeRegistry_Polycone.py +++ b/tests/geant4/T411_MergeRegistry_Polycone.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T011_Polycone.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T011_Polycone.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) diff --git a/tests/geant4/T412_MergeRegistry_GenericPolycone.py b/tests/geant4/T412_MergeRegistry_GenericPolycone.py index 9cdc24c7f..4f0380ae5 100644 --- a/tests/geant4/T412_MergeRegistry_GenericPolycone.py +++ b/tests/geant4/T412_MergeRegistry_GenericPolycone.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T012_GenericPolycone.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T012_GenericPolycone.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) diff --git a/tests/geant4/T413_MergeRegistry_Polyhedra.py b/tests/geant4/T413_MergeRegistry_Polyhedra.py index cdb7d5351..067724eeb 100644 --- a/tests/geant4/T413_MergeRegistry_Polyhedra.py +++ b/tests/geant4/T413_MergeRegistry_Polyhedra.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T013_Polyhedra.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T013_Polyhedra.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) diff --git a/tests/geant4/T414_MergeRegistry_GenericPolyhedra.py b/tests/geant4/T414_MergeRegistry_GenericPolyhedra.py index cbae3df2b..84d3152b7 100644 --- a/tests/geant4/T414_MergeRegistry_GenericPolyhedra.py +++ b/tests/geant4/T414_MergeRegistry_GenericPolyhedra.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T014_GenericPolyhedra.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T014_GenericPolyhedra.Test( + vis=False, interactive=False, outputPath=outputPath + )["logicalVolume"] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) diff --git a/tests/geant4/T415_MergeRegistry_EllipticalTube.py b/tests/geant4/T415_MergeRegistry_EllipticalTube.py index 1b806f6d2..b976a51ea 100644 --- a/tests/geant4/T415_MergeRegistry_EllipticalTube.py +++ b/tests/geant4/T415_MergeRegistry_EllipticalTube.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T015_EllipticalTube.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T015_EllipticalTube.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) diff --git a/tests/geant4/T416_MergeRegistry_Ellipoid.py b/tests/geant4/T416_MergeRegistry_Ellipoid.py index 3cf8fc472..8f0d82f48 100644 --- a/tests/geant4/T416_MergeRegistry_Ellipoid.py +++ b/tests/geant4/T416_MergeRegistry_Ellipoid.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T016_Ellipsoid.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T016_Ellipsoid.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) diff --git a/tests/geant4/T417_MergeRegistry_EllipticalCone.py b/tests/geant4/T417_MergeRegistry_EllipticalCone.py index 391d16495..a169c636a 100644 --- a/tests/geant4/T417_MergeRegistry_EllipticalCone.py +++ b/tests/geant4/T417_MergeRegistry_EllipticalCone.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T017_EllipticalCone.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T017_EllipticalCone.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) @@ -37,7 +40,7 @@ def Test(vis=False, interactive=False, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg0) - w.write(outputPath/ "T417_MergeRegistry_EllipticalCone.gdml") + w.write(outputPath / "T417_MergeRegistry_EllipticalCone.gdml") # test extent of physical volume extentBB = wl.extent(includeBoundingSolid=True) diff --git a/tests/geant4/T418_MergeRegistry_Paraboloid.py b/tests/geant4/T418_MergeRegistry_Paraboloid.py index 39e871360..d488d4045 100644 --- a/tests/geant4/T418_MergeRegistry_Paraboloid.py +++ b/tests/geant4/T418_MergeRegistry_Paraboloid.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T011_Polycone.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T011_Polycone.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) diff --git a/tests/geant4/T419_MergeRegistry_Hyperboloid.py b/tests/geant4/T419_MergeRegistry_Hyperboloid.py index 93ff21f5a..99bd719e1 100644 --- a/tests/geant4/T419_MergeRegistry_Hyperboloid.py +++ b/tests/geant4/T419_MergeRegistry_Hyperboloid.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T019_Hyperboloid.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T019_Hyperboloid.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) @@ -39,7 +42,6 @@ def Test(vis=False, interactive=False, outputPath=None): w.addDetector(reg0) w.write(outputPath / "T419_MergeRegistry_Hyperboloid.gdml") - # test extent of physical volume extentBB = wl.extent(includeBoundingSolid=True) extent = wl.extent(includeBoundingSolid=False) diff --git a/tests/geant4/T420_MergeRegistry_Tet.py b/tests/geant4/T420_MergeRegistry_Tet.py index ff4e71646..c81767498 100644 --- a/tests/geant4/T420_MergeRegistry_Tet.py +++ b/tests/geant4/T420_MergeRegistry_Tet.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T020_Tet.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T020_Tet.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) diff --git a/tests/geant4/T421_MergeRegistry_ExtrudedSolid.py b/tests/geant4/T421_MergeRegistry_ExtrudedSolid.py index 6e8d04b9a..1269fc905 100644 --- a/tests/geant4/T421_MergeRegistry_ExtrudedSolid.py +++ b/tests/geant4/T421_MergeRegistry_ExtrudedSolid.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T021_ExtrudedSolid.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T021_ExtrudedSolid.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) diff --git a/tests/geant4/T422_MergeRegistry_TwistedBox.py b/tests/geant4/T422_MergeRegistry_TwistedBox.py index 74ca2d571..5925462d0 100644 --- a/tests/geant4/T422_MergeRegistry_TwistedBox.py +++ b/tests/geant4/T422_MergeRegistry_TwistedBox.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T022_TwistedBox.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T022_TwistedBox.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) diff --git a/tests/geant4/T423_MergeRegistry_TwistedTrap.py b/tests/geant4/T423_MergeRegistry_TwistedTrap.py index b7db549bc..9398e186c 100644 --- a/tests/geant4/T423_MergeRegistry_TwistedTrap.py +++ b/tests/geant4/T423_MergeRegistry_TwistedTrap.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T023_TwistedTrap.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T023_TwistedTrap.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) diff --git a/tests/geant4/T424_MergeRegistry_TwistedTrd.py b/tests/geant4/T424_MergeRegistry_TwistedTrd.py index d9d75ff16..cdf224be1 100644 --- a/tests/geant4/T424_MergeRegistry_TwistedTrd.py +++ b/tests/geant4/T424_MergeRegistry_TwistedTrd.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T024_TwistedTrd.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T024_TwistedTrd.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) diff --git a/tests/geant4/T425_MergeRegistry_TwistedTubs.py b/tests/geant4/T425_MergeRegistry_TwistedTubs.py index 42fda6e6f..193682976 100644 --- a/tests/geant4/T425_MergeRegistry_TwistedTubs.py +++ b/tests/geant4/T425_MergeRegistry_TwistedTubs.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T025_TwistedTubs.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T025_TwistedTubs.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) diff --git a/tests/geant4/T426_MergeRegistry_GenericTrap.py b/tests/geant4/T426_MergeRegistry_GenericTrap.py index baf4fab51..43d8631c1 100644 --- a/tests/geant4/T426_MergeRegistry_GenericTrap.py +++ b/tests/geant4/T426_MergeRegistry_GenericTrap.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T026_GenericTrap.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T026_GenericTrap.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) diff --git a/tests/geant4/T428_MergeRegistry_Union.py b/tests/geant4/T428_MergeRegistry_Union.py index 806d5ba5c..0b722020e 100644 --- a/tests/geant4/T428_MergeRegistry_Union.py +++ b/tests/geant4/T428_MergeRegistry_Union.py @@ -8,14 +8,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False,outputPath=outputPath)["logicalVolume"] - l2 = T028_Union.Test(vis=False, interactive=False,outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T028_Union.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) diff --git a/tests/geant4/T429_MergeRegistry_Subtraction.py b/tests/geant4/T429_MergeRegistry_Subtraction.py index 692341857..60eca3ab0 100644 --- a/tests/geant4/T429_MergeRegistry_Subtraction.py +++ b/tests/geant4/T429_MergeRegistry_Subtraction.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False,outputPath=outputPath)["logicalVolume"] - l2 = T029_Subtraction.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T029_Subtraction.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) @@ -37,7 +40,7 @@ def Test(vis=False, interactive=False, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg0) - w.write(outputPath / "T429_MergeRegistry_Subtraction.gdml") + w.write(outputPath / "T429_MergeRegistry_Subtraction.gdml") # test extent of physical volume extentBB = wl.extent(includeBoundingSolid=True) diff --git a/tests/geant4/T430_MergeRegistry_Intersection.py b/tests/geant4/T430_MergeRegistry_Intersection.py index 10e5ea04d..bcb6c8a36 100644 --- a/tests/geant4/T430_MergeRegistry_Intersection.py +++ b/tests/geant4/T430_MergeRegistry_Intersection.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T030_Intersection.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T030_Intersection.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) diff --git a/tests/geant4/T431_MergeRegistry_MultiUnion.py b/tests/geant4/T431_MergeRegistry_MultiUnion.py index 6a8a4cd3a..ff21e449b 100644 --- a/tests/geant4/T431_MergeRegistry_MultiUnion.py +++ b/tests/geant4/T431_MergeRegistry_MultiUnion.py @@ -9,14 +9,17 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T031_MultiUnion.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T031_MultiUnion.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) diff --git a/tests/geant4/T432_MergeRegistry_Box_AssemblyConversion.py b/tests/geant4/T432_MergeRegistry_Box_AssemblyConversion.py index a70811501..5a53dd043 100644 --- a/tests/geant4/T432_MergeRegistry_Box_AssemblyConversion.py +++ b/tests/geant4/T432_MergeRegistry_Box_AssemblyConversion.py @@ -8,15 +8,18 @@ import T001_Box -def Test(vis=False, interactive=False, outputPath = None): - +def Test(vis=False, interactive=False, outputPath=None): if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] av1 = l1.assemblyVolume() av2 = l2.assemblyVolume() @@ -41,7 +44,7 @@ def Test(vis=False, interactive=False, outputPath = None): # gdml output w = _gd.Writer() w.addDetector(reg0) - w.write(outputPath /"T432_MergeRegistry_Box_AssemblyConversion.gdml") + w.write(outputPath / "T432_MergeRegistry_Box_AssemblyConversion.gdml") # test extent of physical volume extentBB = wl.extent(includeBoundingSolid=True) diff --git a/tests/geant4/T433_MergeRegistry_Scale.py b/tests/geant4/T433_MergeRegistry_Scale.py index 2b2c98648..d780b1a03 100644 --- a/tests/geant4/T433_MergeRegistry_Scale.py +++ b/tests/geant4/T433_MergeRegistry_Scale.py @@ -3,9 +3,9 @@ import os as _os import pathlib as _pl -def Test(vis=False, interactive=False, outputPath=None): - if not outputPath : +def Test(vis=False, interactive=False, outputPath=None): + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = pyg4ometry.geant4.Registry() @@ -47,7 +47,7 @@ def Test(vis=False, interactive=False, outputPath=None): # gdml output w = pyg4ometry.gdml.Writer() w.addDetector(reg1) - w.write(outputPath / "T433_MergeRegistry_Scale.gdml") + w.write(outputPath / "T433_MergeRegistry_Scale.gdml") v = None if vis: diff --git a/tests/geant4/T434_MergeRegistry_CollapseAssembly.py b/tests/geant4/T434_MergeRegistry_CollapseAssembly.py index ea987033d..18a803657 100644 --- a/tests/geant4/T434_MergeRegistry_CollapseAssembly.py +++ b/tests/geant4/T434_MergeRegistry_CollapseAssembly.py @@ -49,8 +49,7 @@ def MakeGeometry(): def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg0 = MakeGeometry() @@ -80,7 +79,7 @@ def Test(vis=False, interactive=False, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg1) - w.write( outputPath / "T434_MergeRegistry_CollapseAssembly.gdml") + w.write(outputPath / "T434_MergeRegistry_CollapseAssembly.gdml") # test extent of physical volume extentBB = wl.extent(includeBoundingSolid=True) diff --git a/tests/geant4/T505_MergeRegistry_Assembly.py b/tests/geant4/T505_MergeRegistry_Assembly.py index 42fbd322c..0a3866fc9 100644 --- a/tests/geant4/T505_MergeRegistry_Assembly.py +++ b/tests/geant4/T505_MergeRegistry_Assembly.py @@ -10,8 +10,12 @@ def Test(vis=False, interactive=False): reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T031_MultiUnion.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T031_MultiUnion.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) diff --git a/tests/geant4/T511_MergeRegistry_DefineTree.py b/tests/geant4/T511_MergeRegistry_DefineTree.py index df8328d7e..424e6fda9 100644 --- a/tests/geant4/T511_MergeRegistry_DefineTree.py +++ b/tests/geant4/T511_MergeRegistry_DefineTree.py @@ -10,8 +10,12 @@ def Test(vis=False, interactive=False): reg0 = _g4.Registry() - l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] - l2 = T0034_CutTubs_DefineTree.Test(vis=False, interactive=False, outputPath=outputPath)["logicalVolume"] + l1 = T001_Box.Test(vis=False, interactive=False, outputPath=outputPath)[ + "logicalVolume" + ] + l2 = T0034_CutTubs_DefineTree.Test( + vis=False, interactive=False, outputPath=outputPath + )["logicalVolume"] wx0 = _gd.Constant("wx0", "200", reg0, True) wy0 = _gd.Constant("wy0", "200", reg0, True) diff --git a/tests/geant4/T600_LVTessellated.py b/tests/geant4/T600_LVTessellated.py index 4c378c871..71564b524 100644 --- a/tests/geant4/T600_LVTessellated.py +++ b/tests/geant4/T600_LVTessellated.py @@ -6,8 +6,7 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() diff --git a/tests/geant4/T601_reflect.py b/tests/geant4/T601_reflect.py index ffc3c59d5..324efc345 100644 --- a/tests/geant4/T601_reflect.py +++ b/tests/geant4/T601_reflect.py @@ -6,8 +6,7 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() diff --git a/tests/geant4/T605_LvChangeSolid.py b/tests/geant4/T605_LvChangeSolid.py index 918ccb969..716a28a4d 100644 --- a/tests/geant4/T605_LvChangeSolid.py +++ b/tests/geant4/T605_LvChangeSolid.py @@ -8,8 +8,7 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -57,8 +56,7 @@ def Test(vis=False, interactive=False, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T605_LvChangeSolid.gdml") - + w.write(outputPath / "T605_LvChangeSolid.gdml") # visualisation v = None diff --git a/tests/geant4/T606_LvClipSolid.py b/tests/geant4/T606_LvClipSolid.py index 18a926e7b..75de206fd 100644 --- a/tests/geant4/T606_LvClipSolid.py +++ b/tests/geant4/T606_LvClipSolid.py @@ -8,8 +8,7 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -64,7 +63,6 @@ def Test(vis=False, interactive=False, outputPath=None): w.addDetector(reg) w.write(outputPath / "T606_LvClipSolid.gdml") - # visualisation v = None if vis: diff --git a/tests/geant4/T607_LvChangeAndClipSolid.py b/tests/geant4/T607_LvChangeAndClipSolid.py index 783e5c27e..c53831eb2 100644 --- a/tests/geant4/T607_LvChangeAndClipSolid.py +++ b/tests/geant4/T607_LvChangeAndClipSolid.py @@ -8,8 +8,7 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -62,7 +61,6 @@ def Test(vis=False, interactive=False, outputPath=None): w.addDetector(reg) w.write(outputPath / "T607_LvChangeAndClipSolid.gdml") - # visualisation v = None if vis: diff --git a/tests/geant4/T608_LvClipSolidRecursive.py b/tests/geant4/T608_LvClipSolidRecursive.py index d861cf0cc..0f5293b17 100644 --- a/tests/geant4/T608_LvClipSolidRecursive.py +++ b/tests/geant4/T608_LvClipSolidRecursive.py @@ -8,8 +8,7 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -66,7 +65,7 @@ def Test(vis=False, interactive=False, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath / "T608_LvClipSolidRecursive.gdml") + w.write(outputPath / "T608_LvClipSolidRecursive.gdml") # visualisation v = None diff --git a/tests/geant4/T609_LvClipSolidRecursiveAssembly.py b/tests/geant4/T609_LvClipSolidRecursiveAssembly.py index 8e8771fb6..0a57e0891 100644 --- a/tests/geant4/T609_LvClipSolidRecursiveAssembly.py +++ b/tests/geant4/T609_LvClipSolidRecursiveAssembly.py @@ -8,8 +8,7 @@ def Test(vis=False, interactive=False, outputPath=None): - - if not outputPath : + if not outputPath: outputPath = _pl.Path(__file__).parent reg = _g4.Registry() @@ -65,7 +64,7 @@ def Test(vis=False, interactive=False, outputPath=None): # gdml output w = _gd.Writer() w.addDetector(reg) - w.write(outputPath /"T609_LvClipSolidRecursiveAssembly.gdml") + w.write(outputPath / "T609_LvClipSolidRecursiveAssembly.gdml") # visualisation v = None diff --git a/tests/geant4/test_geant4solids.py b/tests/geant4/test_geant4solids.py index ca9970461..2305fa9c5 100644 --- a/tests/geant4/test_geant4solids.py +++ b/tests/geant4/test_geant4solids.py @@ -132,18 +132,34 @@ def test_PythonGeant_T000_SolidBase(): def test_PythonGeant_T001_Box(tmptestdir): - T001_Box.Test(vis=False, interactive=False, writeNISTMaterials=writeNISTMaterials, outputPath=tmptestdir) + T001_Box.Test( + vis=False, + interactive=False, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) def test_PythonGeant_T002_Tubs(tmptestdir): - T002_Tubs.Test(vis=False, interactive=False, writeNISTMaterials=writeNISTMaterials, outputPath=tmptestdir) + T002_Tubs.Test( + vis=False, + interactive=False, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) def test_PythonGeant_T003_CutTubs(tmptestdir): - T003_CutTubs.Test(vis=False, interactive=False, type=T003_CutTubs.normal, - writeNISTMaterials=writeNISTMaterials, outputPath=tmptestdir) - T003_CutTubs.Test(vis=False, interactive=False, type=T003_CutTubs.flat_ends, - outputPath=tmptestdir) + T003_CutTubs.Test( + vis=False, + interactive=False, + type=T003_CutTubs.normal, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) + T003_CutTubs.Test( + vis=False, interactive=False, type=T003_CutTubs.flat_ends, outputPath=tmptestdir + ) T0031_CutTubs_number.Test(vis=False, interactive=False, outputPath=tmptestdir) T0032_CutTubs_string.Test(vis=False, interactive=False, outputPath=tmptestdir) # TODO @@ -158,88 +174,137 @@ def test_PythonGeant_T004_Cons(tmptestdir): interactive=False, type=T004_Cons.r1min_gt_r1max, writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) + outputPath=tmptestdir, + ) except ValueError: pass try: - T004_Cons.Test(vis=False, interactive=False, type=T004_Cons.r2min_gt_r2max, outputPath=tmptestdir) + T004_Cons.Test( + vis=False, + interactive=False, + type=T004_Cons.r2min_gt_r2max, + outputPath=tmptestdir, + ) except ValueError: pass try: - T004_Cons.Test(vis=False, interactive=False, type=T004_Cons.dphi_gt_2pi,outputPath=tmptestdir) + T004_Cons.Test( + vis=False, + interactive=False, + type=T004_Cons.dphi_gt_2pi, + outputPath=tmptestdir, + ) except ValueError: pass - T004_Cons.Test(vis=False, interactive=False, type=T004_Cons.dphi_eq_2pi, outputPath=tmptestdir) - T004_Cons.Test(vis=False, interactive=False, type=T004_Cons.cone_up, outputPath=tmptestdir) - T004_Cons.Test(vis=False, interactive=False, type=T004_Cons.inner_cylinder, outputPath=tmptestdir) + T004_Cons.Test( + vis=False, interactive=False, type=T004_Cons.dphi_eq_2pi, outputPath=tmptestdir + ) + T004_Cons.Test( + vis=False, interactive=False, type=T004_Cons.cone_up, outputPath=tmptestdir + ) + T004_Cons.Test( + vis=False, + interactive=False, + type=T004_Cons.inner_cylinder, + outputPath=tmptestdir, + ) - T004_Cons.Test(vis=False, interactive=False,outputPath=tmptestdir) + T004_Cons.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T005_Para(tmptestdir): - T005_Para.Test(vis=False, interactive=False, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) + T005_Para.Test( + vis=False, + interactive=False, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) def test_PythonGeant_T006_Trd(tmptestdir): - T006_Trd.Test(vis=False, interactive=False, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir, - ) + T006_Trd.Test( + vis=False, + interactive=False, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) def test_PythonGeant_T007_Trap(tmptestdir): - T007_Trap.Test(vis=False, interactive=False, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) + T007_Trap.Test( + vis=False, + interactive=False, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) def test_PythonGeant_T008_Sphere(tmptestdir): - assert T008_Sphere.Test(vis=False, interactive=False, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) + assert T008_Sphere.Test( + vis=False, + interactive=False, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) def test_PythonGeant_T009_Orb(tmptestdir): - T009_Orb.Test(vis=False, interactive=False, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) + T009_Orb.Test( + vis=False, + interactive=False, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) def test_PythonGeant_T010_Torus(tmptestdir): - T010_Torus.Test(vis=False, interactive=False, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) + T010_Torus.Test( + vis=False, + interactive=False, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) def test_PythonGeant_T011_Polycone(tmptestdir): - T011_Polycone.Test(vis=False, interactive=False, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) + T011_Polycone.Test( + vis=False, + interactive=False, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) def test_PythonGeant_T012_GenericPolycone(tmptestdir): - T012_GenericPolycone.Test(vis=False, interactive=False, type=T012_GenericPolycone.normal, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir - ) + T012_GenericPolycone.Test( + vis=False, + interactive=False, + type=T012_GenericPolycone.normal, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) try: - T012_GenericPolycone.Test(vis=False, interactive=False, type=T012_GenericPolycone.two_planes, - outputPath=tmptestdir - ) + T012_GenericPolycone.Test( + vis=False, + interactive=False, + type=T012_GenericPolycone.two_planes, + outputPath=tmptestdir, + ) except ValueError: pass def test_PythonGeant_T013_Polyhedra(tmptestdir): - T013_Polyhedra.Test(vis=False, interactive=False, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) + T013_Polyhedra.Test( + vis=False, + interactive=False, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) def test_PythonGeant_T014_GenericPolyhedra(tmptestdir): @@ -248,7 +313,7 @@ def test_PythonGeant_T014_GenericPolyhedra(tmptestdir): interactive=False, type=T014_GenericPolyhedra.normal, writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir + outputPath=tmptestdir, ) try: @@ -256,7 +321,8 @@ def test_PythonGeant_T014_GenericPolyhedra(tmptestdir): vis=False, interactive=False, type=T014_GenericPolyhedra.two_planes, - outputPath=tmptestdir) + outputPath=tmptestdir, + ) except ValueError: pass @@ -266,15 +332,17 @@ def test_PythonGeant_T015_EllipticalTube(tmptestdir): vis=False, interactive=False, writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir + outputPath=tmptestdir, ) def test_PythonGeant_T016_Ellipsoid(tmptestdir): - assert T016_Ellipsoid.Test(vis=False, - interactive=False, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) + assert T016_Ellipsoid.Test( + vis=False, + interactive=False, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) def test_PythonGeant_T017_EllipticalCone(tmptestdir): @@ -282,7 +350,7 @@ def test_PythonGeant_T017_EllipticalCone(tmptestdir): vis=False, interactive=False, writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir + outputPath=tmptestdir, ) try: @@ -291,113 +359,139 @@ def test_PythonGeant_T017_EllipticalCone(tmptestdir): interactive=False, type=T017_EllipticalCone.zcut_outofrange, writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir + outputPath=tmptestdir, ) except ValueError: pass def test_PythonGeant_T018_Paraboloid(tmptestdir): - T018_Paraboloid.Test(vis=False, - interactive=False, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) + T018_Paraboloid.Test( + vis=False, + interactive=False, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) def test_PythonGeant_T019_Hyperboloid(tmptestdir): - T019_Hyperboloid.Test(vis=False, - interactive=False, - type=T019_Hyperboloid.normal, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) - - T019_Hyperboloid.Test(vis=False, - interactive=False, - type=T019_Hyperboloid.rmin_eq_zero, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) + T019_Hyperboloid.Test( + vis=False, + interactive=False, + type=T019_Hyperboloid.normal, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) + + T019_Hyperboloid.Test( + vis=False, + interactive=False, + type=T019_Hyperboloid.rmin_eq_zero, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) try: - T019_Hyperboloid.Test(vis=False, - interactive=False, - type=T019_Hyperboloid.rmin_gt_rmax, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) + T019_Hyperboloid.Test( + vis=False, + interactive=False, + type=T019_Hyperboloid.rmin_gt_rmax, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) except ValueError: pass def test_PythonGeant_T020_Tet(tmptestdir): - T020_Tet.Test(vis=False, - interactive=False, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) + T020_Tet.Test( + vis=False, + interactive=False, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) def test_PythonGeant_T021_ExtrudedSolid(tmptestdir): - T021_ExtrudedSolid.Test(vis=False, - interactive=False, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) + T021_ExtrudedSolid.Test( + vis=False, + interactive=False, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) def test_PythonGeant_T022_TwistedBox(tmptestdir): - T022_TwistedBox.Test(vis=False, - interactive=False, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) + T022_TwistedBox.Test( + vis=False, + interactive=False, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) def test_PythonGeant_T023_TwistedTrap(tmptestdir): - T023_TwistedTrap.Test(vis=False, - interactive=False, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) + T023_TwistedTrap.Test( + vis=False, + interactive=False, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) def test_PythonGeant_T024_TwistedTrd(tmptestdir): - T024_TwistedTrd.Test(vis=False, - interactive=False, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) + T024_TwistedTrd.Test( + vis=False, + interactive=False, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) def test_PythonGeant_T025_TwistedTubs(tmptestdir): - T025_TwistedTubs.Test(vis=False, - interactive=False, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) - + T025_TwistedTubs.Test( + vis=False, + interactive=False, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) def test_PythonGeant_T026_GenericTrap(tmptestdir): - T026_GenericTrap.Test(vis=False, - interactive=False, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) + T026_GenericTrap.Test( + vis=False, + interactive=False, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) def test_PythonGeant_T028_Union(tmptestdir): - T028_Union.Test(vis=False, - interactive=False, - disjoint=False, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) - - T028_Union.Test(vis=False, - interactive=False, - disjoint=True, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) + T028_Union.Test( + vis=False, + interactive=False, + disjoint=False, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) + T028_Union.Test( + vis=False, + interactive=False, + disjoint=True, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) def test_PythonGeant_T029_Subtraction(tmptestdir): - T029_Subtraction.Test(vis=False, - interactive=False, - nullMesh=False, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) + T029_Subtraction.Test( + vis=False, + interactive=False, + nullMesh=False, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) # try : # T029_Subtraction.Test(False,False,True) @@ -406,11 +500,13 @@ def test_PythonGeant_T029_Subtraction(tmptestdir): def test_PythonGeant_T030_Intersection(tmptestdir): - T030_Intersection.Test(vis=False, - interactive=False, - type=T030_Intersection.normal, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) + T030_Intersection.Test( + vis=False, + interactive=False, + type=T030_Intersection.normal, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) # try : # T030_Intersection.Test(False,False,T030_Intersection.non_intersecting) @@ -419,102 +515,82 @@ def test_PythonGeant_T030_Intersection(tmptestdir): def test_PythonGeant_T031_MultiUnion(tmptestdir): - T031_MultiUnion.Test(vis=False, - interactive=False, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) + T031_MultiUnion.Test( + vis=False, + interactive=False, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) def test_PythonGeant_T032_Scaled(tmptestdir): - T032_Scaled.Test(vis=False, - interactive=False, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) + T032_Scaled.Test( + vis=False, + interactive=False, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) def test_PythonGeant_T033_Tessellated(tmptestdir): - T033_TessellatedSolid.Test(vis=False, - interactive=False, - writeNISTMaterials=writeNISTMaterials, - outputPath=tmptestdir) + T033_TessellatedSolid.Test( + vis=False, + interactive=False, + writeNISTMaterials=writeNISTMaterials, + outputPath=tmptestdir, + ) def test_PythonGeant_T101_PhysicalLogical(tmptestdir): - T101_physical_logical.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T101_physical_logical.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T102_OverlapMone(tmptestdir): - T102_overlap_none.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T102_overlap_none.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T103_OverlapCopl(tmptestdir): - T103_overlap_copl.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T103_overlap_copl.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T103_OverlapCopl_Simple(tmptestdir): - T103_overlap_copl_simple.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T103_overlap_copl_simple.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T104_OverlapVolu(tmptestdir): - T104_overlap_volu.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T104_overlap_volu.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T105_Assembly(tmptestdir): - T105_assembly.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T105_assembly.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T106_ReplicaX(tmptestdir): - T106_replica_x.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T106_replica_x.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T107_ReplicaY(tmptestdir): - T107_replica_y.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T107_replica_y.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T108_ReplicaZ(tmptestdir): - T108_replica_z.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T108_replica_z.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T109_ReplicaPhi(tmptestdir): - T109_replica_phi.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T109_replica_phi.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T110_ReplicaRho(tmptestdir): - T110_replica_rho.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T110_replica_rho.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T111_parameterised_box(tmptestdir): - T111_parameterised_box.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T111_parameterised_box.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T112_parameterised_tube(tmptestdir): - T112_parameterised_tube.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T112_parameterised_tube.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T201_Materials(tmptestdir): @@ -543,215 +619,187 @@ def test_PythonGeant_T205_NIST_Material(tmptestdir): def test_PythonGeant_T400_MergeRegistry(tmptestdir): - T400_MergeRegistry.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T400_MergeRegistry.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T401_MergeRegistry_Box(tmptestdir): - T401_MergeRegistry_Box.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T401_MergeRegistry_Box.Test(vis=False, interactive=False, outputPath=tmptestdir) + def test_PythonGeant_T402_MergeRegistry_Tubs(tmptestdir): - T402_MergeRegistry_Tubs.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T402_MergeRegistry_Tubs.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T403_MergeRegistry_CutTubs(tmptestdir): - T403_MergeRegistry_CutTubs.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T403_MergeRegistry_CutTubs.Test(vis=False, interactive=False, outputPath=tmptestdir) + def test_PythonGeant_T404_MergeRegistry_Cons(tmptestdir): - T404_MergeRegistry_Cons.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T404_MergeRegistry_Cons.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T405_MergeRegistry_Para(tmptestdir): - T405_MergeRegistry_Para.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T405_MergeRegistry_Para.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T406_MergeRegistry_Trd(tmptestdir): - T406_MergeRegistry_Trd.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T406_MergeRegistry_Trd.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T407_MergeRegistry_Trap(tmptestdir): - T407_MergeRegistry_Trap.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T407_MergeRegistry_Trap.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T408_MergeRegistry_Sphere(tmptestdir): - T408_MergeRegistry_Sphere.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T408_MergeRegistry_Sphere.Test(vis=False, interactive=False, outputPath=tmptestdir) + def test_PythonGeant_T409_MergeRegistry_Orb(tmptestdir): - T409_MergeRegistry_Orb.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T409_MergeRegistry_Orb.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T410_MergeRegistry_Torus(tmptestdir): - T410_MergeRegistry_Torus.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T410_MergeRegistry_Torus.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T411_MergeRegistry_Polycone(tmptestdir): - T411_MergeRegistry_Polycone.Test(vis=False, - interactive=tmptestdir, - outputPath=tmptestdir) + T411_MergeRegistry_Polycone.Test( + vis=False, interactive=tmptestdir, outputPath=tmptestdir + ) def test_PythonGeant_T412_MergeRegistry_GenericPolycone(tmptestdir): - T412_MergeRegistry_GenericPolycone.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T412_MergeRegistry_GenericPolycone.Test( + vis=False, interactive=False, outputPath=tmptestdir + ) def test_PythonGeant_T413_MergeRegistry_Polyhedra(tmptestdir): - T413_MergeRegistry_Polyhedra.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T413_MergeRegistry_Polyhedra.Test( + vis=False, interactive=False, outputPath=tmptestdir + ) def test_PythonGeant_T414_MergeRegistry_GenericPolyhedra(tmptestdir): - T414_MergeRegistry_GenericPolyhedra.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T414_MergeRegistry_GenericPolyhedra.Test( + vis=False, interactive=False, outputPath=tmptestdir + ) def test_PythonGeant_T415_MergeRegistry_EllipticalTube(tmptestdir): - T415_MergeRegistry_EllipticalTube.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T415_MergeRegistry_EllipticalTube.Test( + vis=False, interactive=False, outputPath=tmptestdir + ) def test_PythonGeant_T416_MergeRegistry_Ellipsoid(tmptestdir): - T416_MergeRegistry_Ellipoid.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T416_MergeRegistry_Ellipoid.Test( + vis=False, interactive=False, outputPath=tmptestdir + ) def test_PythonGeant_T417_MergeRegistry_EllipticalCone(tmptestdir): - T417_MergeRegistry_EllipticalCone.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T417_MergeRegistry_EllipticalCone.Test( + vis=False, interactive=False, outputPath=tmptestdir + ) + def test_PythonGeant_T418_MergeRegistry_EllipticalParaboloid(tmptestdir): - T418_MergeRegistry_Paraboloid.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T418_MergeRegistry_Paraboloid.Test( + vis=False, interactive=False, outputPath=tmptestdir + ) def test_PythonGeant_T419_MergeRegistry_Hyperboloid(tmptestdir): - T419_MergeRegistry_Hyperboloid.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T419_MergeRegistry_Hyperboloid.Test( + vis=False, interactive=False, outputPath=tmptestdir + ) def test_PythonGeant_T420_MergeRegistry_Tet(tmptestdir): - T420_MergeRegistry_Tet.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T420_MergeRegistry_Tet.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T421_MergeRegistry_ExtrudedSolid(tmptestdir): - T421_MergeRegistry_ExtrudedSolid.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T421_MergeRegistry_ExtrudedSolid.Test( + vis=False, interactive=False, outputPath=tmptestdir + ) def test_PythonGeant_T422_MergeRegistry_TwistedBox(tmptestdir): - T422_MergeRegistry_TwistedBox.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T422_MergeRegistry_TwistedBox.Test( + vis=False, interactive=False, outputPath=tmptestdir + ) def test_PythonGeant_T423_MergeRegistry_TwistedTrap(tmptestdir): - T423_MergeRegistry_TwistedTrap.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T423_MergeRegistry_TwistedTrap.Test( + vis=False, interactive=False, outputPath=tmptestdir + ) def test_PythonGeant_T424_MergeRegistry_TwistedTrd(tmptestdir): - T424_MergeRegistry_TwistedTrd.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T424_MergeRegistry_TwistedTrd.Test( + vis=False, interactive=False, outputPath=tmptestdir + ) def test_PythonGeant_T425_MergeRegistry_TwistedTubs(tmptestdir): - T425_MergeRegistry_TwistedTubs.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T425_MergeRegistry_TwistedTubs.Test( + vis=False, interactive=False, outputPath=tmptestdir + ) def test_PythonGeant_T426_MergeRegistry_GenericTrap(tmptestdir): - T426_MergeRegistry_GenericTrap.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T426_MergeRegistry_GenericTrap.Test( + vis=False, interactive=False, outputPath=tmptestdir + ) def test_PythonGeant_T428_MergeRegistry_Union(tmptestdir): - T428_MergeRegistry_Union.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T428_MergeRegistry_Union.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T429_MergeRegistry_Subtraction(tmptestdir): - T429_MergeRegistry_Subtraction.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T429_MergeRegistry_Subtraction.Test( + vis=False, interactive=False, outputPath=tmptestdir + ) def test_PythonGeant_T430_MergeRegistry_Intersection(tmptestdir): - T430_MergeRegistry_Intersection.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T430_MergeRegistry_Intersection.Test( + vis=False, interactive=False, outputPath=tmptestdir + ) def test_PythonGeant_T431_MergeRegistry_MultiUnion(tmptestdir): - T431_MergeRegistry_MultiUnion.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T431_MergeRegistry_MultiUnion.Test( + vis=False, interactive=False, outputPath=tmptestdir + ) def test_PythonGeant_T432_MergeRegistryBoxAssemblyConverion(tmptestdir): - T432_MergeRegistry_Box_AssemblyConversion.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T432_MergeRegistry_Box_AssemblyConversion.Test( + vis=False, interactive=False, outputPath=tmptestdir + ) def test_PythonGeant_T433_MergeRegistry_Scale(tmptestdir): - T433_MergeRegistry_Scale.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T433_MergeRegistry_Scale.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T434_MergeRegistry_CollapseAssembly(tmptestdir): - T434_MergeRegistry_CollapseAssembly.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T434_MergeRegistry_CollapseAssembly.Test( + vis=False, interactive=False, outputPath=tmptestdir + ) def test_PythonGeant_T600_LVTessellated(tmptestdir): - T600_LVTessellated.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T600_LVTessellated.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T601_reflect(tmptestdir): - T601_reflect.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T601_reflect.Test(vis=False, interactive=False, outputPath=tmptestdir) # def test_PythonGeant_T602_lv_cull_daughters(): @@ -765,30 +813,22 @@ def test_PythonGeant_T601_reflect(tmptestdir): def test_PythonGeant_T605_LvChangeSolid(tmptestdir): - T605_LvChangeSolid.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T605_LvChangeSolid.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T606_LvClipSolid(tmptestdir): - T606_LvClipSolid.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T606_LvClipSolid.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T607_LvChangeAndClipSolid(tmptestdir): - T607_LvChangeAndClipSolid.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T607_LvChangeAndClipSolid.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T608_LvClipSolidRecursive(tmptestdir): - T608_LvClipSolidRecursive.Test(vis=False, - interactive=False, - outputPath=tmptestdir) + T608_LvClipSolidRecursive.Test(vis=False, interactive=False, outputPath=tmptestdir) def test_PythonGeant_T609_LvClipSolidRecursiveAssembly(tmptestdir): - T609_LvClipSolidRecursiveAssembly.Test(vis=False, - interactive=False, - outputPath=tmptestdir) \ No newline at end of file + T609_LvClipSolidRecursiveAssembly.Test( + vis=False, interactive=False, outputPath=tmptestdir + )