tofu.tests.tests01_geom package

Subpackages

Submodules

tofu.tests.tests01_geom.sa_prueba module

tofu.tests.tests01_geom.test_01_GG module

This module contains tests for tofu.geom in its structured version

tofu.tests.tests01_geom.test_01_GG.setup_module(module)[source]
tofu.tests.tests01_geom.test_01_GG.teardown_module(module)[source]
tofu.tests.tests01_geom.test_01_GG.test01_CoordShift()[source]
tofu.tests.tests01_geom.test_01_GG.test02_Poly_CLockOrder()[source]
tofu.tests.tests01_geom.test_01_GG.test03_Poly_VolAngTor()[source]
tofu.tests.tests01_geom.test_01_GG.test04_Ves_isInside(VPoly=array([[3.00000000e+00, 2.99798668e+00, 2.99195481e+00, 2.98192870e+00, 2.96794870e+00, 2.95007112e+00, 2.92836793e+00, 2.90292654e+00, 2.87384938e+00, 2.84125353e+00, 2.80527026e+00, 2.76604444e+00, 2.72373404e+00, 2.67850941e+00, 2.63055267e+00, 2.58005691e+00, 2.52722547e+00, 2.47227107e+00, 2.41541501e+00, 2.35688622e+00, 2.29692038e+00, 2.23575894e+00, 2.17364818e+00, 2.11083820e+00, 2.04758192e+00, 1.98413404e+00, 1.92075004e+00, 1.85768516e+00, 1.79519333e+00, 1.73352619e+00, 1.67293204e+00, 1.61365487e+00, 1.55593339e+00, 1.50000000e+00, 1.44607994e+00, 1.39439031e+00, 1.34513927e+00, 1.29852511e+00, 1.25473555e+00, 1.21394691e+00, 1.17632342e+00, 1.14201659e+00, 1.11116455e+00, 1.08389154e+00, 1.06030738e+00, 1.04050703e+00, 1.02457021e+00, 1.01256111e+00, 1.00452808e+00, 1.00050346e+00, 1.00050346e+00, 1.00452808e+00, 1.01256111e+00, 1.02457021e+00, 1.04050703e+00, 1.06030738e+00, 1.08389154e+00, 1.11116455e+00, 1.14201659e+00, 1.17632342e+00, 1.21394691e+00, 1.25473555e+00, 1.29852511e+00, 1.34513927e+00, 1.39439031e+00, 1.44607994e+00, 1.50000000e+00, 1.55593339e+00, 1.61365487e+00, 1.67293204e+00, 1.73352619e+00, 1.79519333e+00, 1.85768516e+00, 1.92075004e+00, 1.98413404e+00, 2.04758192e+00, 2.11083820e+00, 2.17364818e+00, 2.23575894e+00, 2.29692038e+00, 2.35688622e+00, 2.41541501e+00, 2.47227107e+00, 2.52722547e+00, 2.58005691e+00, 2.63055267e+00, 2.67850941e+00, 2.72373404e+00, 2.76604444e+00, 2.80527026e+00, 2.84125353e+00, 2.87384938e+00, 2.90292654e+00, 2.92836793e+00, 2.95007112e+00, 2.96794870e+00, 2.98192870e+00, 2.99195481e+00, 2.99798668e+00, 3.00000000e+00], [0.00000000e+00, 6.34239197e-02, 1.26592454e-01, 1.89251244e-01, 2.51147987e-01, 3.12033446e-01, 3.71662456e-01, 4.29794912e-01, 4.86196736e-01, 5.40640817e-01, 5.92907929e-01, 6.42787610e-01, 6.90079011e-01, 7.34591709e-01, 7.76146464e-01, 8.14575952e-01, 8.49725430e-01, 8.81453363e-01, 9.09631995e-01, 9.34147860e-01, 9.54902241e-01, 9.71811568e-01, 9.84807753e-01, 9.93838464e-01, 9.98867339e-01, 9.99874128e-01, 9.96854776e-01, 9.89821442e-01, 9.78802446e-01, 9.63842159e-01, 9.45000819e-01, 9.22354294e-01, 8.95993774e-01, 8.66025404e-01, 8.32569855e-01, 7.95761841e-01, 7.55749574e-01, 7.12694171e-01, 6.66769001e-01, 6.18158986e-01, 5.67059864e-01, 5.13677392e-01, 4.58226522e-01, 4.00930535e-01, 3.42020143e-01, 2.81732557e-01, 2.20310533e-01, 1.58001396e-01, 9.50560433e-02, 3.17279335e-02, - 3.17279335e-02, - 9.50560433e-02, - 1.58001396e-01, - 2.20310533e-01, - 2.81732557e-01, - 3.42020143e-01, - 4.00930535e-01, - 4.58226522e-01, - 5.13677392e-01, - 5.67059864e-01, - 6.18158986e-01, - 6.66769001e-01, - 7.12694171e-01, - 7.55749574e-01, - 7.95761841e-01, - 8.32569855e-01, - 8.66025404e-01, - 8.95993774e-01, - 9.22354294e-01, - 9.45000819e-01, - 9.63842159e-01, - 9.78802446e-01, - 9.89821442e-01, - 9.96854776e-01, - 9.99874128e-01, - 9.98867339e-01, - 9.93838464e-01, - 9.84807753e-01, - 9.71811568e-01, - 9.54902241e-01, - 9.34147860e-01, - 9.09631995e-01, - 8.81453363e-01, - 8.49725430e-01, - 8.14575952e-01, - 7.76146464e-01, - 7.34591709e-01, - 6.90079011e-01, - 6.42787610e-01, - 5.92907929e-01, - 5.40640817e-01, - 4.86196736e-01, - 4.29794912e-01, - 3.71662456e-01, - 3.12033446e-01, - 2.51147987e-01, - 1.89251244e-01, - 1.26592454e-01, - 6.34239197e-02, - 2.44929360e-16]]))[source]
tofu.tests.tests01_geom.test_01_GG.test09_Ves_Smesh_Tor(VPoly=array([[3.00000000e+00, 2.99798668e+00, 2.99195481e+00, 2.98192870e+00, 2.96794870e+00, 2.95007112e+00, 2.92836793e+00, 2.90292654e+00, 2.87384938e+00, 2.84125353e+00, 2.80527026e+00, 2.76604444e+00, 2.72373404e+00, 2.67850941e+00, 2.63055267e+00, 2.58005691e+00, 2.52722547e+00, 2.47227107e+00, 2.41541501e+00, 2.35688622e+00, 2.29692038e+00, 2.23575894e+00, 2.17364818e+00, 2.11083820e+00, 2.04758192e+00, 1.98413404e+00, 1.92075004e+00, 1.85768516e+00, 1.79519333e+00, 1.73352619e+00, 1.67293204e+00, 1.61365487e+00, 1.55593339e+00, 1.50000000e+00, 1.44607994e+00, 1.39439031e+00, 1.34513927e+00, 1.29852511e+00, 1.25473555e+00, 1.21394691e+00, 1.17632342e+00, 1.14201659e+00, 1.11116455e+00, 1.08389154e+00, 1.06030738e+00, 1.04050703e+00, 1.02457021e+00, 1.01256111e+00, 1.00452808e+00, 1.00050346e+00, 1.00050346e+00, 1.00452808e+00, 1.01256111e+00, 1.02457021e+00, 1.04050703e+00, 1.06030738e+00, 1.08389154e+00, 1.11116455e+00, 1.14201659e+00, 1.17632342e+00, 1.21394691e+00, 1.25473555e+00, 1.29852511e+00, 1.34513927e+00, 1.39439031e+00, 1.44607994e+00, 1.50000000e+00, 1.55593339e+00, 1.61365487e+00, 1.67293204e+00, 1.73352619e+00, 1.79519333e+00, 1.85768516e+00, 1.92075004e+00, 1.98413404e+00, 2.04758192e+00, 2.11083820e+00, 2.17364818e+00, 2.23575894e+00, 2.29692038e+00, 2.35688622e+00, 2.41541501e+00, 2.47227107e+00, 2.52722547e+00, 2.58005691e+00, 2.63055267e+00, 2.67850941e+00, 2.72373404e+00, 2.76604444e+00, 2.80527026e+00, 2.84125353e+00, 2.87384938e+00, 2.90292654e+00, 2.92836793e+00, 2.95007112e+00, 2.96794870e+00, 2.98192870e+00, 2.99195481e+00, 2.99798668e+00, 3.00000000e+00], [0.00000000e+00, 6.34239197e-02, 1.26592454e-01, 1.89251244e-01, 2.51147987e-01, 3.12033446e-01, 3.71662456e-01, 4.29794912e-01, 4.86196736e-01, 5.40640817e-01, 5.92907929e-01, 6.42787610e-01, 6.90079011e-01, 7.34591709e-01, 7.76146464e-01, 8.14575952e-01, 8.49725430e-01, 8.81453363e-01, 9.09631995e-01, 9.34147860e-01, 9.54902241e-01, 9.71811568e-01, 9.84807753e-01, 9.93838464e-01, 9.98867339e-01, 9.99874128e-01, 9.96854776e-01, 9.89821442e-01, 9.78802446e-01, 9.63842159e-01, 9.45000819e-01, 9.22354294e-01, 8.95993774e-01, 8.66025404e-01, 8.32569855e-01, 7.95761841e-01, 7.55749574e-01, 7.12694171e-01, 6.66769001e-01, 6.18158986e-01, 5.67059864e-01, 5.13677392e-01, 4.58226522e-01, 4.00930535e-01, 3.42020143e-01, 2.81732557e-01, 2.20310533e-01, 1.58001396e-01, 9.50560433e-02, 3.17279335e-02, - 3.17279335e-02, - 9.50560433e-02, - 1.58001396e-01, - 2.20310533e-01, - 2.81732557e-01, - 3.42020143e-01, - 4.00930535e-01, - 4.58226522e-01, - 5.13677392e-01, - 5.67059864e-01, - 6.18158986e-01, - 6.66769001e-01, - 7.12694171e-01, - 7.55749574e-01, - 7.95761841e-01, - 8.32569855e-01, - 8.66025404e-01, - 8.95993774e-01, - 9.22354294e-01, - 9.45000819e-01, - 9.63842159e-01, - 9.78802446e-01, - 9.89821442e-01, - 9.96854776e-01, - 9.99874128e-01, - 9.98867339e-01, - 9.93838464e-01, - 9.84807753e-01, - 9.71811568e-01, - 9.54902241e-01, - 9.34147860e-01, - 9.09631995e-01, - 8.81453363e-01, - 8.49725430e-01, - 8.14575952e-01, - 7.76146464e-01, - 7.34591709e-01, - 6.90079011e-01, - 6.42787610e-01, - 5.92907929e-01, - 5.40640817e-01, - 4.86196736e-01, - 4.29794912e-01, - 3.71662456e-01, - 3.12033446e-01, - 2.51147987e-01, - 1.89251244e-01, - 1.26592454e-01, - 6.34239197e-02, - 2.44929360e-16]]))[source]
tofu.tests.tests01_geom.test_01_GG.test10_Ves_Smesh_Tor_PhiMinMax(VPoly=array([[3.00000000e+00, 2.99798668e+00, 2.99195481e+00, 2.98192870e+00, 2.96794870e+00, 2.95007112e+00, 2.92836793e+00, 2.90292654e+00, 2.87384938e+00, 2.84125353e+00, 2.80527026e+00, 2.76604444e+00, 2.72373404e+00, 2.67850941e+00, 2.63055267e+00, 2.58005691e+00, 2.52722547e+00, 2.47227107e+00, 2.41541501e+00, 2.35688622e+00, 2.29692038e+00, 2.23575894e+00, 2.17364818e+00, 2.11083820e+00, 2.04758192e+00, 1.98413404e+00, 1.92075004e+00, 1.85768516e+00, 1.79519333e+00, 1.73352619e+00, 1.67293204e+00, 1.61365487e+00, 1.55593339e+00, 1.50000000e+00, 1.44607994e+00, 1.39439031e+00, 1.34513927e+00, 1.29852511e+00, 1.25473555e+00, 1.21394691e+00, 1.17632342e+00, 1.14201659e+00, 1.11116455e+00, 1.08389154e+00, 1.06030738e+00, 1.04050703e+00, 1.02457021e+00, 1.01256111e+00, 1.00452808e+00, 1.00050346e+00, 1.00050346e+00, 1.00452808e+00, 1.01256111e+00, 1.02457021e+00, 1.04050703e+00, 1.06030738e+00, 1.08389154e+00, 1.11116455e+00, 1.14201659e+00, 1.17632342e+00, 1.21394691e+00, 1.25473555e+00, 1.29852511e+00, 1.34513927e+00, 1.39439031e+00, 1.44607994e+00, 1.50000000e+00, 1.55593339e+00, 1.61365487e+00, 1.67293204e+00, 1.73352619e+00, 1.79519333e+00, 1.85768516e+00, 1.92075004e+00, 1.98413404e+00, 2.04758192e+00, 2.11083820e+00, 2.17364818e+00, 2.23575894e+00, 2.29692038e+00, 2.35688622e+00, 2.41541501e+00, 2.47227107e+00, 2.52722547e+00, 2.58005691e+00, 2.63055267e+00, 2.67850941e+00, 2.72373404e+00, 2.76604444e+00, 2.80527026e+00, 2.84125353e+00, 2.87384938e+00, 2.90292654e+00, 2.92836793e+00, 2.95007112e+00, 2.96794870e+00, 2.98192870e+00, 2.99195481e+00, 2.99798668e+00, 3.00000000e+00], [0.00000000e+00, 6.34239197e-02, 1.26592454e-01, 1.89251244e-01, 2.51147987e-01, 3.12033446e-01, 3.71662456e-01, 4.29794912e-01, 4.86196736e-01, 5.40640817e-01, 5.92907929e-01, 6.42787610e-01, 6.90079011e-01, 7.34591709e-01, 7.76146464e-01, 8.14575952e-01, 8.49725430e-01, 8.81453363e-01, 9.09631995e-01, 9.34147860e-01, 9.54902241e-01, 9.71811568e-01, 9.84807753e-01, 9.93838464e-01, 9.98867339e-01, 9.99874128e-01, 9.96854776e-01, 9.89821442e-01, 9.78802446e-01, 9.63842159e-01, 9.45000819e-01, 9.22354294e-01, 8.95993774e-01, 8.66025404e-01, 8.32569855e-01, 7.95761841e-01, 7.55749574e-01, 7.12694171e-01, 6.66769001e-01, 6.18158986e-01, 5.67059864e-01, 5.13677392e-01, 4.58226522e-01, 4.00930535e-01, 3.42020143e-01, 2.81732557e-01, 2.20310533e-01, 1.58001396e-01, 9.50560433e-02, 3.17279335e-02, - 3.17279335e-02, - 9.50560433e-02, - 1.58001396e-01, - 2.20310533e-01, - 2.81732557e-01, - 3.42020143e-01, - 4.00930535e-01, - 4.58226522e-01, - 5.13677392e-01, - 5.67059864e-01, - 6.18158986e-01, - 6.66769001e-01, - 7.12694171e-01, - 7.55749574e-01, - 7.95761841e-01, - 8.32569855e-01, - 8.66025404e-01, - 8.95993774e-01, - 9.22354294e-01, - 9.45000819e-01, - 9.63842159e-01, - 9.78802446e-01, - 9.89821442e-01, - 9.96854776e-01, - 9.99874128e-01, - 9.98867339e-01, - 9.93838464e-01, - 9.84807753e-01, - 9.71811568e-01, - 9.54902241e-01, - 9.34147860e-01, - 9.09631995e-01, - 8.81453363e-01, - 8.49725430e-01, - 8.14575952e-01, - 7.76146464e-01, - 7.34591709e-01, - 6.90079011e-01, - 6.42787610e-01, - 5.92907929e-01, - 5.40640817e-01, - 4.86196736e-01, - 4.29794912e-01, - 3.71662456e-01, - 3.12033446e-01, - 2.51147987e-01, - 1.89251244e-01, - 1.26592454e-01, - 6.34239197e-02, - 2.44929360e-16]]), plot=True)[source]
tofu.tests.tests01_geom.test_01_GG.test11_Ves_Smesh_TorStruct(VPoly=array([[3.00000000e+00, 2.99798668e+00, 2.99195481e+00, 2.98192870e+00, 2.96794870e+00, 2.95007112e+00, 2.92836793e+00, 2.90292654e+00, 2.87384938e+00, 2.84125353e+00, 2.80527026e+00, 2.76604444e+00, 2.72373404e+00, 2.67850941e+00, 2.63055267e+00, 2.58005691e+00, 2.52722547e+00, 2.47227107e+00, 2.41541501e+00, 2.35688622e+00, 2.29692038e+00, 2.23575894e+00, 2.17364818e+00, 2.11083820e+00, 2.04758192e+00, 1.98413404e+00, 1.92075004e+00, 1.85768516e+00, 1.79519333e+00, 1.73352619e+00, 1.67293204e+00, 1.61365487e+00, 1.55593339e+00, 1.50000000e+00, 1.44607994e+00, 1.39439031e+00, 1.34513927e+00, 1.29852511e+00, 1.25473555e+00, 1.21394691e+00, 1.17632342e+00, 1.14201659e+00, 1.11116455e+00, 1.08389154e+00, 1.06030738e+00, 1.04050703e+00, 1.02457021e+00, 1.01256111e+00, 1.00452808e+00, 1.00050346e+00, 1.00050346e+00, 1.00452808e+00, 1.01256111e+00, 1.02457021e+00, 1.04050703e+00, 1.06030738e+00, 1.08389154e+00, 1.11116455e+00, 1.14201659e+00, 1.17632342e+00, 1.21394691e+00, 1.25473555e+00, 1.29852511e+00, 1.34513927e+00, 1.39439031e+00, 1.44607994e+00, 1.50000000e+00, 1.55593339e+00, 1.61365487e+00, 1.67293204e+00, 1.73352619e+00, 1.79519333e+00, 1.85768516e+00, 1.92075004e+00, 1.98413404e+00, 2.04758192e+00, 2.11083820e+00, 2.17364818e+00, 2.23575894e+00, 2.29692038e+00, 2.35688622e+00, 2.41541501e+00, 2.47227107e+00, 2.52722547e+00, 2.58005691e+00, 2.63055267e+00, 2.67850941e+00, 2.72373404e+00, 2.76604444e+00, 2.80527026e+00, 2.84125353e+00, 2.87384938e+00, 2.90292654e+00, 2.92836793e+00, 2.95007112e+00, 2.96794870e+00, 2.98192870e+00, 2.99195481e+00, 2.99798668e+00, 3.00000000e+00], [0.00000000e+00, 6.34239197e-02, 1.26592454e-01, 1.89251244e-01, 2.51147987e-01, 3.12033446e-01, 3.71662456e-01, 4.29794912e-01, 4.86196736e-01, 5.40640817e-01, 5.92907929e-01, 6.42787610e-01, 6.90079011e-01, 7.34591709e-01, 7.76146464e-01, 8.14575952e-01, 8.49725430e-01, 8.81453363e-01, 9.09631995e-01, 9.34147860e-01, 9.54902241e-01, 9.71811568e-01, 9.84807753e-01, 9.93838464e-01, 9.98867339e-01, 9.99874128e-01, 9.96854776e-01, 9.89821442e-01, 9.78802446e-01, 9.63842159e-01, 9.45000819e-01, 9.22354294e-01, 8.95993774e-01, 8.66025404e-01, 8.32569855e-01, 7.95761841e-01, 7.55749574e-01, 7.12694171e-01, 6.66769001e-01, 6.18158986e-01, 5.67059864e-01, 5.13677392e-01, 4.58226522e-01, 4.00930535e-01, 3.42020143e-01, 2.81732557e-01, 2.20310533e-01, 1.58001396e-01, 9.50560433e-02, 3.17279335e-02, - 3.17279335e-02, - 9.50560433e-02, - 1.58001396e-01, - 2.20310533e-01, - 2.81732557e-01, - 3.42020143e-01, - 4.00930535e-01, - 4.58226522e-01, - 5.13677392e-01, - 5.67059864e-01, - 6.18158986e-01, - 6.66769001e-01, - 7.12694171e-01, - 7.55749574e-01, - 7.95761841e-01, - 8.32569855e-01, - 8.66025404e-01, - 8.95993774e-01, - 9.22354294e-01, - 9.45000819e-01, - 9.63842159e-01, - 9.78802446e-01, - 9.89821442e-01, - 9.96854776e-01, - 9.99874128e-01, - 9.98867339e-01, - 9.93838464e-01, - 9.84807753e-01, - 9.71811568e-01, - 9.54902241e-01, - 9.34147860e-01, - 9.09631995e-01, - 8.81453363e-01, - 8.49725430e-01, - 8.14575952e-01, - 7.76146464e-01, - 7.34591709e-01, - 6.90079011e-01, - 6.42787610e-01, - 5.92907929e-01, - 5.40640817e-01, - 4.86196736e-01, - 4.29794912e-01, - 3.71662456e-01, - 3.12033446e-01, - 2.51147987e-01, - 1.89251244e-01, - 1.26592454e-01, - 6.34239197e-02, - 2.44929360e-16]]), plot=True)[source]
tofu.tests.tests01_geom.test_01_GG.test12_Ves_Smesh_Lin(VPoly=array([[3.00000000e+00, 2.99798668e+00, 2.99195481e+00, 2.98192870e+00, 2.96794870e+00, 2.95007112e+00, 2.92836793e+00, 2.90292654e+00, 2.87384938e+00, 2.84125353e+00, 2.80527026e+00, 2.76604444e+00, 2.72373404e+00, 2.67850941e+00, 2.63055267e+00, 2.58005691e+00, 2.52722547e+00, 2.47227107e+00, 2.41541501e+00, 2.35688622e+00, 2.29692038e+00, 2.23575894e+00, 2.17364818e+00, 2.11083820e+00, 2.04758192e+00, 1.98413404e+00, 1.92075004e+00, 1.85768516e+00, 1.79519333e+00, 1.73352619e+00, 1.67293204e+00, 1.61365487e+00, 1.55593339e+00, 1.50000000e+00, 1.44607994e+00, 1.39439031e+00, 1.34513927e+00, 1.29852511e+00, 1.25473555e+00, 1.21394691e+00, 1.17632342e+00, 1.14201659e+00, 1.11116455e+00, 1.08389154e+00, 1.06030738e+00, 1.04050703e+00, 1.02457021e+00, 1.01256111e+00, 1.00452808e+00, 1.00050346e+00, 1.00050346e+00, 1.00452808e+00, 1.01256111e+00, 1.02457021e+00, 1.04050703e+00, 1.06030738e+00, 1.08389154e+00, 1.11116455e+00, 1.14201659e+00, 1.17632342e+00, 1.21394691e+00, 1.25473555e+00, 1.29852511e+00, 1.34513927e+00, 1.39439031e+00, 1.44607994e+00, 1.50000000e+00, 1.55593339e+00, 1.61365487e+00, 1.67293204e+00, 1.73352619e+00, 1.79519333e+00, 1.85768516e+00, 1.92075004e+00, 1.98413404e+00, 2.04758192e+00, 2.11083820e+00, 2.17364818e+00, 2.23575894e+00, 2.29692038e+00, 2.35688622e+00, 2.41541501e+00, 2.47227107e+00, 2.52722547e+00, 2.58005691e+00, 2.63055267e+00, 2.67850941e+00, 2.72373404e+00, 2.76604444e+00, 2.80527026e+00, 2.84125353e+00, 2.87384938e+00, 2.90292654e+00, 2.92836793e+00, 2.95007112e+00, 2.96794870e+00, 2.98192870e+00, 2.99195481e+00, 2.99798668e+00, 3.00000000e+00], [0.00000000e+00, 6.34239197e-02, 1.26592454e-01, 1.89251244e-01, 2.51147987e-01, 3.12033446e-01, 3.71662456e-01, 4.29794912e-01, 4.86196736e-01, 5.40640817e-01, 5.92907929e-01, 6.42787610e-01, 6.90079011e-01, 7.34591709e-01, 7.76146464e-01, 8.14575952e-01, 8.49725430e-01, 8.81453363e-01, 9.09631995e-01, 9.34147860e-01, 9.54902241e-01, 9.71811568e-01, 9.84807753e-01, 9.93838464e-01, 9.98867339e-01, 9.99874128e-01, 9.96854776e-01, 9.89821442e-01, 9.78802446e-01, 9.63842159e-01, 9.45000819e-01, 9.22354294e-01, 8.95993774e-01, 8.66025404e-01, 8.32569855e-01, 7.95761841e-01, 7.55749574e-01, 7.12694171e-01, 6.66769001e-01, 6.18158986e-01, 5.67059864e-01, 5.13677392e-01, 4.58226522e-01, 4.00930535e-01, 3.42020143e-01, 2.81732557e-01, 2.20310533e-01, 1.58001396e-01, 9.50560433e-02, 3.17279335e-02, - 3.17279335e-02, - 9.50560433e-02, - 1.58001396e-01, - 2.20310533e-01, - 2.81732557e-01, - 3.42020143e-01, - 4.00930535e-01, - 4.58226522e-01, - 5.13677392e-01, - 5.67059864e-01, - 6.18158986e-01, - 6.66769001e-01, - 7.12694171e-01, - 7.55749574e-01, - 7.95761841e-01, - 8.32569855e-01, - 8.66025404e-01, - 8.95993774e-01, - 9.22354294e-01, - 9.45000819e-01, - 9.63842159e-01, - 9.78802446e-01, - 9.89821442e-01, - 9.96854776e-01, - 9.99874128e-01, - 9.98867339e-01, - 9.93838464e-01, - 9.84807753e-01, - 9.71811568e-01, - 9.54902241e-01, - 9.34147860e-01, - 9.09631995e-01, - 8.81453363e-01, - 8.49725430e-01, - 8.14575952e-01, - 7.76146464e-01, - 7.34591709e-01, - 6.90079011e-01, - 6.42787610e-01, - 5.92907929e-01, - 5.40640817e-01, - 4.86196736e-01, - 4.29794912e-01, - 3.71662456e-01, - 3.12033446e-01, - 2.51147987e-01, - 1.89251244e-01, - 1.26592454e-01, - 6.34239197e-02, - 2.44929360e-16]]))[source]
tofu.tests.tests01_geom.test_01_GG.test13_LOS_PInOut()[source]
tofu.tests.tests01_geom.test_01_GG.test14_LOS_sino()[source]
tofu.tests.tests01_geom.test_01_GG.test15_LOS_sino_vec()[source]
tofu.tests.tests01_geom.test_01_GG.test16_dist_los_vpoly()[source]
tofu.tests.tests01_geom.test_01_GG.test17_distance_los_to_circle()[source]
tofu.tests.tests01_geom.test_01_GG.test17_is_los_close_to_circle()[source]
tofu.tests.tests01_geom.test_01_GG.test18_comp_dist_los_vpoly()[source]
tofu.tests.tests01_geom.test_01_GG.test19_comp_dist_los_vpoly_vec()[source]
tofu.tests.tests01_geom.test_01_GG.test20_is_close_los_vpoly_vec()[source]
tofu.tests.tests01_geom.test_01_GG.test21_which_los_closer_vpoly_vec()[source]
tofu.tests.tests01_geom.test_01_GG.test22_earclipping()[source]
tofu.tests.tests01_geom.test_01_GG.test23_vignetting()[source]
tofu.tests.tests01_geom.test_01_GG.test24_is_visible(debug=0)[source]

tofu.tests.tests01_geom.test_02_compute module

This module contains tests for tofu.geom in its structured version

tofu.tests.tests01_geom.test_02_compute.setup_module(module)[source]
tofu.tests.tests01_geom.test_02_compute.teardown_module(module)[source]

tofu.tests.tests01_geom.test_03_core module

This module contains tests for tofu.geom in its structured version

class tofu.tests.tests01_geom.test_03_core.Test01_Struct[source]

Bases: object

Class for testing the Struct clas and its methods

In tofu, a Struct is a 3D object defined by a 2D contour in a cross-section It has a - toroidal or linear - extension (None if axisymmetric) It has methods for plotting, computing key parameters…

setup()[source]
classmethod setup_class(dobj={'Lin': {'CoilCS': {'V0': class   Name   SaveName                                                nP  noccur  nturns  active  superconducting  color                    ------  -----  ------------------------------------------------------  --  ------  ------  ------  ---------------  ------------------------ CoilCS  V0Lin  TFG_CoilCS_ExpWEST_V0Lin_sh00000_Vers1.5.0-3-g96c1c10c  4   1       None    None    None             ( 1.0, 0.0, 0.0, 1.0)}, 'CoilPF': {'Bl': class   Name   SaveName                                                nP  noccur  nturns  active  superconducting  color                    ------  -----  ------------------------------------------------------  --  ------  ------  ------  ---------------  ------------------------ CoilPF  BlLin  TFG_CoilPF_ExpWEST_BlLin_sh00000_Vers1.5.0-3-g96c1c10c  4   1       None    None    None             ( 1.0, 0.0, 0.0, 1.0), 'Bu': class   Name   SaveName                                                nP  noccur  nturns  active  superconducting  color                    ------  -----  ------------------------------------------------------  --  ------  ------  ------  ---------------  ------------------------ CoilPF  BuLin  TFG_CoilPF_ExpWEST_BuLin_sh00000_Vers1.5.0-3-g96c1c10c  4   1       None    None    None             ( 1.0, 0.0, 0.0, 1.0), 'DivLow1': class   Name        SaveName                                                     nP  noccur  nturns  active  superconducting  color                    ------  ----------  -----------------------------------------------------------  --  ------  ------  ------  ---------------  ------------------------ CoilPF  DivLow1Lin  TFG_CoilPF_ExpWEST_DivLow1Lin_sh00000_Vers1.5.0-3-g96c1c10c  10  1       None    None    None             ( 1.0, 0.0, 0.0, 1.0), 'DivLow2': class   Name        SaveName                                                     nP  noccur  nturns  active  superconducting  color                    ------  ----------  -----------------------------------------------------------  --  ------  ------  ------  ---------------  ------------------------ CoilPF  DivLow2Lin  TFG_CoilPF_ExpWEST_DivLow2Lin_sh00000_Vers1.5.0-3-g96c1c10c  10  1       None    None    None             ( 1.0, 0.0, 0.0, 1.0), 'DivUp1': class   Name       SaveName                                                    nP  noccur  nturns  active  superconducting  color                    ------  ---------  ----------------------------------------------------------  --  ------  ------  ------  ---------------  ------------------------ CoilPF  DivUp1Lin  TFG_CoilPF_ExpWEST_DivUp1Lin_sh00000_Vers1.5.0-3-g96c1c10c  10  1       None    None    None             ( 1.0, 0.0, 0.0, 1.0), 'DivUp2': class   Name       SaveName                                                    nP  noccur  nturns  active  superconducting  color                    ------  ---------  ----------------------------------------------------------  --  ------  ------  ------  ---------------  ------------------------ CoilPF  DivUp2Lin  TFG_CoilPF_ExpWEST_DivUp2Lin_sh00000_Vers1.5.0-3-g96c1c10c  10  1       None    None    None             ( 1.0, 0.0, 0.0, 1.0), 'Dl': class   Name   SaveName                                                nP  noccur  nturns  active  superconducting  color                    ------  -----  ------------------------------------------------------  --  ------  ------  ------  ---------------  ------------------------ CoilPF  DlLin  TFG_CoilPF_ExpWEST_DlLin_sh00000_Vers1.5.0-3-g96c1c10c  4   1       None    None    None             ( 1.0, 0.0, 0.0, 1.0), 'Du': class   Name   SaveName                                                nP  noccur  nturns  active  superconducting  color                    ------  -----  ------------------------------------------------------  --  ------  ------  ------  ---------------  ------------------------ CoilPF  DuLin  TFG_CoilPF_ExpWEST_DuLin_sh00000_Vers1.5.0-3-g96c1c10c  4   1       None    None    None             ( 1.0, 0.0, 0.0, 1.0), 'El': class   Name   SaveName                                                nP  noccur  nturns  active  superconducting  color                    ------  -----  ------------------------------------------------------  --  ------  ------  ------  ---------------  ------------------------ CoilPF  ElLin  TFG_CoilPF_ExpWEST_ElLin_sh00000_Vers1.5.0-3-g96c1c10c  4   1       None    None    None             ( 1.0, 0.0, 0.0, 1.0), 'Eu': class   Name   SaveName                                                nP  noccur  nturns  active  superconducting  color                    ------  -----  ------------------------------------------------------  --  ------  ------  ------  ---------------  ------------------------ CoilPF  EuLin  TFG_CoilPF_ExpWEST_EuLin_sh00000_Vers1.5.0-3-g96c1c10c  4   1       None    None    None             ( 1.0, 0.0, 0.0, 1.0), 'Fl': class   Name   SaveName                                                nP  noccur  nturns  active  superconducting  color                    ------  -----  ------------------------------------------------------  --  ------  ------  ------  ---------------  ------------------------ CoilPF  FlLin  TFG_CoilPF_ExpWEST_FlLin_sh00000_Vers1.5.0-3-g96c1c10c  4   1       None    None    None             ( 1.0, 0.0, 0.0, 1.0), 'Fu': class   Name   SaveName                                                nP  noccur  nturns  active  superconducting  color                    ------  -----  ------------------------------------------------------  --  ------  ------  ------  ---------------  ------------------------ CoilPF  FuLin  TFG_CoilPF_ExpWEST_FuLin_sh00000_Vers1.5.0-3-g96c1c10c  4   1       None    None    None             ( 1.0, 0.0, 0.0, 1.0)}, 'PFC': {'Baffle': class  Name       SaveName                                                 nP  noccur  color                    -----  ---------  -------------------------------------------------------  --  ------  ------------------------ PFC    BaffleLin  TFG_PFC_ExpWEST_BaffleLin_sh00000_Vers1.5.0-3-g96c1c10c  13  1       ( 0.8, 0.8, 0.8, 0.8), 'BumperInner': class  Name            SaveName                                                      nP  noccur  color                    -----  --------------  ------------------------------------------------------------  --  ------  ------------------------ PFC    BumperInnerLin  TFG_PFC_ExpWEST_BumperInnerLin_sh00000_Vers1.5.0-3-g96c1c10c  15  6       ( 0.8, 0.8, 0.8, 0.8), 'BumperOuter': class  Name            SaveName                                                      nP  noccur  color                    -----  --------------  ------------------------------------------------------------  --  ------  ------------------------ PFC    BumperOuterLin  TFG_PFC_ExpWEST_BumperOuterLin_sh00000_Vers1.5.0-3-g96c1c10c  16  1       ( 0.8, 0.8, 0.8, 0.8), 'DivLowGC': class  Name         SaveName                                                   nP  noccur  color                    -----  -----------  ---------------------------------------------------------  --  ------  ------------------------ PFC    DivLowGCLin  TFG_PFC_ExpWEST_DivLowGCLin_sh00000_Vers1.5.0-3-g96c1c10c  4   1       ( 0.8, 0.8, 0.8, 0.8), 'DivLowITER': class  Name           SaveName                                                     nP  noccur  color                    -----  -------------  -----------------------------------------------------------  --  ------  ------------------------ PFC    DivLowITERLin  TFG_PFC_ExpWEST_DivLowITERLin_sh00000_Vers1.5.0-3-g96c1c10c  12  1       ( 0.8, 0.8, 0.8, 0.8), 'DivUp': class  Name      SaveName                                                nP  noccur  color                    -----  --------  ------------------------------------------------------  --  ------  ------------------------ PFC    DivUpLin  TFG_PFC_ExpWEST_DivUpLin_sh00000_Vers1.5.0-3-g96c1c10c  4   1       ( 0.8, 0.8, 0.8, 0.8), 'IC1': class  Name    SaveName                                              nP  noccur  color                    -----  ------  ----------------------------------------------------  --  ------  ------------------------ PFC    IC1Lin  TFG_PFC_ExpWEST_IC1Lin_sh00000_Vers1.5.0-3-g96c1c10c  39  3       ( 0.8, 0.8, 0.8, 0.8), 'IC2': class  Name    SaveName                                              nP  noccur  color                    -----  ------  ----------------------------------------------------  --  ------  ------------------------ PFC    IC2Lin  TFG_PFC_ExpWEST_IC2Lin_sh00000_Vers1.5.0-3-g96c1c10c  39  3       ( 0.8, 0.8, 0.8, 0.8), 'IC3': class  Name    SaveName                                              nP  noccur  color                    -----  ------  ----------------------------------------------------  --  ------  ------------------------ PFC    IC3Lin  TFG_PFC_ExpWEST_IC3Lin_sh00000_Vers1.5.0-3-g96c1c10c  39  3       ( 0.8, 0.8, 0.8, 0.8), 'LH1': class  Name    SaveName                                              nP  noccur  color                    -----  ------  ----------------------------------------------------  --  ------  ------------------------ PFC    LH1Lin  TFG_PFC_ExpWEST_LH1Lin_sh00000_Vers1.5.0-3-g96c1c10c  39  3       ( 0.8, 0.8, 0.8, 0.8), 'LH2': class  Name    SaveName                                              nP  noccur  color                    -----  ------  ----------------------------------------------------  --  ------  ------------------------ PFC    LH2Lin  TFG_PFC_ExpWEST_LH2Lin_sh00000_Vers1.5.0-3-g96c1c10c  39  3       ( 0.8, 0.8, 0.8, 0.8), 'Ripple': class  Name       SaveName                                                 nP  noccur  color                    -----  ---------  -------------------------------------------------------  --  ------  ------------------------ PFC    RippleLin  TFG_PFC_ExpWEST_RippleLin_sh00000_Vers1.5.0-3-g96c1c10c  5   12      ( 0.8, 0.8, 0.8, 0.8)}, 'Ves': {'VesIn': class  Name      SaveName                                                nP   noccur  color                    -----  --------  ------------------------------------------------------  ---  ------  ------------------------ Ves    VesInLin  TFG_Ves_ExpWEST_VesInLin_sh00000_Vers1.5.0-3-g96c1c10c  100  1       ( 0.0, 0.0, 0.0, 1.0), 'VesOut': class  Name       SaveName                                                 nP   noccur  color                    -----  ---------  -------------------------------------------------------  ---  ------  ------------------------ Ves    VesOutLin  TFG_Ves_ExpWEST_VesOutLin_sh00000_Vers1.5.0-3-g96c1c10c  100  1       ( 0.0, 0.0, 0.0, 1.0)}}, 'Tor': {'CoilCS': {'V0': class   Name   SaveName                                                nP  noccur  nturns  active  superconducting  color                    ------  -----  ------------------------------------------------------  --  ------  ------  ------  ---------------  ------------------------ CoilCS  V0Tor  TFG_CoilCS_ExpWEST_V0Tor_sh00000_Vers1.5.0-3-g96c1c10c  4   0       None    None    None             ( 1.0, 0.0, 0.0, 1.0)}, 'CoilPF': {'Bl': class   Name   SaveName                                                nP  noccur  nturns  active  superconducting  color                    ------  -----  ------------------------------------------------------  --  ------  ------  ------  ---------------  ------------------------ CoilPF  BlTor  TFG_CoilPF_ExpWEST_BlTor_sh00000_Vers1.5.0-3-g96c1c10c  4   0       None    None    None             ( 1.0, 0.0, 0.0, 1.0), 'Bu': class   Name   SaveName                                                nP  noccur  nturns  active  superconducting  color                    ------  -----  ------------------------------------------------------  --  ------  ------  ------  ---------------  ------------------------ CoilPF  BuTor  TFG_CoilPF_ExpWEST_BuTor_sh00000_Vers1.5.0-3-g96c1c10c  4   0       None    None    None             ( 1.0, 0.0, 0.0, 1.0), 'DivLow1': class   Name        SaveName                                                     nP  noccur  nturns  active  superconducting  color                    ------  ----------  -----------------------------------------------------------  --  ------  ------  ------  ---------------  ------------------------ CoilPF  DivLow1Tor  TFG_CoilPF_ExpWEST_DivLow1Tor_sh00000_Vers1.5.0-3-g96c1c10c  10  0       None    None    None             ( 1.0, 0.0, 0.0, 1.0), 'DivLow2': class   Name        SaveName                                                     nP  noccur  nturns  active  superconducting  color                    ------  ----------  -----------------------------------------------------------  --  ------  ------  ------  ---------------  ------------------------ CoilPF  DivLow2Tor  TFG_CoilPF_ExpWEST_DivLow2Tor_sh00000_Vers1.5.0-3-g96c1c10c  10  0       None    None    None             ( 1.0, 0.0, 0.0, 1.0), 'DivUp1': class   Name       SaveName                                                    nP  noccur  nturns  active  superconducting  color                    ------  ---------  ----------------------------------------------------------  --  ------  ------  ------  ---------------  ------------------------ CoilPF  DivUp1Tor  TFG_CoilPF_ExpWEST_DivUp1Tor_sh00000_Vers1.5.0-3-g96c1c10c  10  0       None    None    None             ( 1.0, 0.0, 0.0, 1.0), 'DivUp2': class   Name       SaveName                                                    nP  noccur  nturns  active  superconducting  color                    ------  ---------  ----------------------------------------------------------  --  ------  ------  ------  ---------------  ------------------------ CoilPF  DivUp2Tor  TFG_CoilPF_ExpWEST_DivUp2Tor_sh00000_Vers1.5.0-3-g96c1c10c  10  0       None    None    None             ( 1.0, 0.0, 0.0, 1.0), 'Dl': class   Name   SaveName                                                nP  noccur  nturns  active  superconducting  color                    ------  -----  ------------------------------------------------------  --  ------  ------  ------  ---------------  ------------------------ CoilPF  DlTor  TFG_CoilPF_ExpWEST_DlTor_sh00000_Vers1.5.0-3-g96c1c10c  4   0       None    None    None             ( 1.0, 0.0, 0.0, 1.0), 'Du': class   Name   SaveName                                                nP  noccur  nturns  active  superconducting  color                    ------  -----  ------------------------------------------------------  --  ------  ------  ------  ---------------  ------------------------ CoilPF  DuTor  TFG_CoilPF_ExpWEST_DuTor_sh00000_Vers1.5.0-3-g96c1c10c  4   0       None    None    None             ( 1.0, 0.0, 0.0, 1.0), 'El': class   Name   SaveName                                                nP  noccur  nturns  active  superconducting  color                    ------  -----  ------------------------------------------------------  --  ------  ------  ------  ---------------  ------------------------ CoilPF  ElTor  TFG_CoilPF_ExpWEST_ElTor_sh00000_Vers1.5.0-3-g96c1c10c  4   0       None    None    None             ( 1.0, 0.0, 0.0, 1.0), 'Eu': class   Name   SaveName                                                nP  noccur  nturns  active  superconducting  color                    ------  -----  ------------------------------------------------------  --  ------  ------  ------  ---------------  ------------------------ CoilPF  EuTor  TFG_CoilPF_ExpWEST_EuTor_sh00000_Vers1.5.0-3-g96c1c10c  4   0       None    None    None             ( 1.0, 0.0, 0.0, 1.0), 'Fl': class   Name   SaveName                                                nP  noccur  nturns  active  superconducting  color                    ------  -----  ------------------------------------------------------  --  ------  ------  ------  ---------------  ------------------------ CoilPF  FlTor  TFG_CoilPF_ExpWEST_FlTor_sh00000_Vers1.5.0-3-g96c1c10c  4   0       None    None    None             ( 1.0, 0.0, 0.0, 1.0), 'Fu': class   Name   SaveName                                                nP  noccur  nturns  active  superconducting  color                    ------  -----  ------------------------------------------------------  --  ------  ------  ------  ---------------  ------------------------ CoilPF  FuTor  TFG_CoilPF_ExpWEST_FuTor_sh00000_Vers1.5.0-3-g96c1c10c  4   0       None    None    None             ( 1.0, 0.0, 0.0, 1.0)}, 'PFC': {'Baffle': class  Name       SaveName                                                 nP  noccur  color                    -----  ---------  -------------------------------------------------------  --  ------  ------------------------ PFC    BaffleTor  TFG_PFC_ExpWEST_BaffleTor_sh00000_Vers1.5.0-3-g96c1c10c  13  0       ( 0.8, 0.8, 0.8, 0.8), 'BumperInner': class  Name            SaveName                                                      nP  noccur  color                    -----  --------------  ------------------------------------------------------------  --  ------  ------------------------ PFC    BumperInnerTor  TFG_PFC_ExpWEST_BumperInnerTor_sh00000_Vers1.5.0-3-g96c1c10c  15  6       ( 0.8, 0.8, 0.8, 0.8), 'BumperOuter': class  Name            SaveName                                                      nP  noccur  color                    -----  --------------  ------------------------------------------------------------  --  ------  ------------------------ PFC    BumperOuterTor  TFG_PFC_ExpWEST_BumperOuterTor_sh00000_Vers1.5.0-3-g96c1c10c  16  1       ( 0.8, 0.8, 0.8, 0.8), 'DivLowGC': class  Name         SaveName                                                   nP  noccur  color                    -----  -----------  ---------------------------------------------------------  --  ------  ------------------------ PFC    DivLowGCTor  TFG_PFC_ExpWEST_DivLowGCTor_sh00000_Vers1.5.0-3-g96c1c10c  4   0       ( 0.8, 0.8, 0.8, 0.8), 'DivLowITER': class  Name           SaveName                                                     nP  noccur  color                    -----  -------------  -----------------------------------------------------------  --  ------  ------------------------ PFC    DivLowITERTor  TFG_PFC_ExpWEST_DivLowITERTor_sh00000_Vers1.5.0-3-g96c1c10c  12  0       ( 0.8, 0.8, 0.8, 0.8), 'DivUp': class  Name      SaveName                                                nP  noccur  color                    -----  --------  ------------------------------------------------------  --  ------  ------------------------ PFC    DivUpTor  TFG_PFC_ExpWEST_DivUpTor_sh00000_Vers1.5.0-3-g96c1c10c  4   0       ( 0.8, 0.8, 0.8, 0.8), 'IC1': class  Name    SaveName                                              nP  noccur  color                    -----  ------  ----------------------------------------------------  --  ------  ------------------------ PFC    IC1Tor  TFG_PFC_ExpWEST_IC1Tor_sh00000_Vers1.5.0-3-g96c1c10c  39  3       ( 0.8, 0.8, 0.8, 0.8), 'IC2': class  Name    SaveName                                              nP  noccur  color                    -----  ------  ----------------------------------------------------  --  ------  ------------------------ PFC    IC2Tor  TFG_PFC_ExpWEST_IC2Tor_sh00000_Vers1.5.0-3-g96c1c10c  39  3       ( 0.8, 0.8, 0.8, 0.8), 'IC3': class  Name    SaveName                                              nP  noccur  color                    -----  ------  ----------------------------------------------------  --  ------  ------------------------ PFC    IC3Tor  TFG_PFC_ExpWEST_IC3Tor_sh00000_Vers1.5.0-3-g96c1c10c  39  3       ( 0.8, 0.8, 0.8, 0.8), 'LH1': class  Name    SaveName                                              nP  noccur  color                    -----  ------  ----------------------------------------------------  --  ------  ------------------------ PFC    LH1Tor  TFG_PFC_ExpWEST_LH1Tor_sh00000_Vers1.5.0-3-g96c1c10c  39  3       ( 0.8, 0.8, 0.8, 0.8), 'LH2': class  Name    SaveName                                              nP  noccur  color                    -----  ------  ----------------------------------------------------  --  ------  ------------------------ PFC    LH2Tor  TFG_PFC_ExpWEST_LH2Tor_sh00000_Vers1.5.0-3-g96c1c10c  39  3       ( 0.8, 0.8, 0.8, 0.8), 'Ripple': class  Name       SaveName                                                 nP  noccur  color                    -----  ---------  -------------------------------------------------------  --  ------  ------------------------ PFC    RippleTor  TFG_PFC_ExpWEST_RippleTor_sh00000_Vers1.5.0-3-g96c1c10c  5   12      ( 0.8, 0.8, 0.8, 0.8)}, 'Ves': {'VesIn': class  Name      SaveName                                                nP   noccur  color                    -----  --------  ------------------------------------------------------  ---  ------  ------------------------ Ves    VesInTor  TFG_Ves_ExpWEST_VesInTor_sh00000_Vers1.5.0-3-g96c1c10c  100  0       ( 0.0, 0.0, 0.0, 1.0), 'VesOut': class  Name       SaveName                                                 nP   noccur  color                    -----  ---------  -------------------------------------------------------  ---  ------  ------------------------ Ves    VesOutTor  TFG_Ves_ExpWEST_VesOutTor_sh00000_Vers1.5.0-3-g96c1c10c  100  0       ( 0.0, 0.0, 0.0, 1.0)}}})[source]
teardown()[source]
classmethod teardown_class()[source]
test00_set_move()[source]
test01_todict()[source]
test02_fromdict()[source]
test03_copy_equal()[source]
test04_get_nbytes()[source]
test05_strip_nbytes()[source]
test06_set_move_None()[source]
test07_rotate_copy()[source]
test08_set_dsino()[source]
test09_setget_color()[source]
test10_isInside(NR=20, NZ=20, NThet=10)[source]
test11_InsideConvexPoly()[source]
test12_get_sampleEdge()[source]
test13_get_sampleCross()[source]
test14_get_sampleS()[source]
test15_get_sampleV()[source]
test16_plot()[source]
test17_plot_sino()[source]
test18_saveload(verb=False)[source]
test19_save_to_txt(verb=False)[source]
class tofu.tests.tests01_geom.test_03_core.Test02_Config[source]

Bases: object

Class for testing the Config class and its methods

A Config class holds the geometrical configuration of a tokamak It holds all the structural elements constituting it It provides methods to plot, move them

classmethod setup_class(dobj={'Lin': tot. Struct  tot. occur  tot. points -----------  ----------  ----------- 27           53          540          class   Name            SaveName                                                      nP   noccur  move  color                     visible ------  --------------  ------------------------------------------------------------  ---  ------  ----  ------------------------  ------- Ves     VesInLin        TFG_Ves_ExpWEST_VesInLin_sh00000_Vers1.5.0-3-g96c1c10c        100  1       None  ( 0.0, 0.0, 0.0, 1.0)  True    Ves     VesOutLin       TFG_Ves_ExpWEST_VesOutLin_sh00000_Vers1.5.0-3-g96c1c10c       100  1       None  ( 0.0, 0.0, 0.0, 1.0)  True    PFC     BaffleLin       TFG_PFC_ExpWEST_BaffleLin_sh00000_Vers1.5.0-3-g96c1c10c       13   1       None  ( 0.8, 0.8, 0.8, 0.8)  True    PFC     BumperInnerLin  TFG_PFC_ExpWEST_BumperInnerLin_sh00000_Vers1.5.0-3-g96c1c10c  15   6       None  ( 0.8, 0.8, 0.8, 0.8)  True    PFC     BumperOuterLin  TFG_PFC_ExpWEST_BumperOuterLin_sh00000_Vers1.5.0-3-g96c1c10c  16   1       None  ( 0.8, 0.8, 0.8, 0.8)  True    PFC     DivLowITERLin   TFG_PFC_ExpWEST_DivLowITERLin_sh00000_Vers1.5.0-3-g96c1c10c   12   1       None  ( 0.8, 0.8, 0.8, 0.8)  True    PFC     IC3Lin          TFG_PFC_ExpWEST_IC3Lin_sh00000_Vers1.5.0-3-g96c1c10c          39   3       None  ( 0.8, 0.8, 0.8, 0.8)  True    PFC     DivUpLin        TFG_PFC_ExpWEST_DivUpLin_sh00000_Vers1.5.0-3-g96c1c10c        4    1       None  ( 0.8, 0.8, 0.8, 0.8)  True    PFC     LH2Lin          TFG_PFC_ExpWEST_LH2Lin_sh00000_Vers1.5.0-3-g96c1c10c          39   3       None  ( 0.8, 0.8, 0.8, 0.8)  True    PFC     LH1Lin          TFG_PFC_ExpWEST_LH1Lin_sh00000_Vers1.5.0-3-g96c1c10c          39   3       None  ( 0.8, 0.8, 0.8, 0.8)  True    PFC     DivLowGCLin     TFG_PFC_ExpWEST_DivLowGCLin_sh00000_Vers1.5.0-3-g96c1c10c     4    1       None  ( 0.8, 0.8, 0.8, 0.8)  True    PFC     RippleLin       TFG_PFC_ExpWEST_RippleLin_sh00000_Vers1.5.0-3-g96c1c10c       5    12      None  ( 0.8, 0.8, 0.8, 0.8)  True    PFC     IC2Lin          TFG_PFC_ExpWEST_IC2Lin_sh00000_Vers1.5.0-3-g96c1c10c          39   3       None  ( 0.8, 0.8, 0.8, 0.8)  True    PFC     IC1Lin          TFG_PFC_ExpWEST_IC1Lin_sh00000_Vers1.5.0-3-g96c1c10c          39   3       None  ( 0.8, 0.8, 0.8, 0.8)  True    CoilPF  BlLin           TFG_CoilPF_ExpWEST_BlLin_sh00000_Vers1.5.0-3-g96c1c10c        4    1       None  ( 1.0, 0.0, 0.0, 1.0)  True    CoilPF  ElLin           TFG_CoilPF_ExpWEST_ElLin_sh00000_Vers1.5.0-3-g96c1c10c        4    1       None  ( 1.0, 0.0, 0.0, 1.0)  True    CoilPF  DivLow2Lin      TFG_CoilPF_ExpWEST_DivLow2Lin_sh00000_Vers1.5.0-3-g96c1c10c   10   1       None  ( 1.0, 0.0, 0.0, 1.0)  True    CoilPF  EuLin           TFG_CoilPF_ExpWEST_EuLin_sh00000_Vers1.5.0-3-g96c1c10c        4    1       None  ( 1.0, 0.0, 0.0, 1.0)  True    CoilPF  DivLow1Lin      TFG_CoilPF_ExpWEST_DivLow1Lin_sh00000_Vers1.5.0-3-g96c1c10c   10   1       None  ( 1.0, 0.0, 0.0, 1.0)  True    CoilPF  FlLin           TFG_CoilPF_ExpWEST_FlLin_sh00000_Vers1.5.0-3-g96c1c10c        4    1       None  ( 1.0, 0.0, 0.0, 1.0)  True    CoilPF  FuLin           TFG_CoilPF_ExpWEST_FuLin_sh00000_Vers1.5.0-3-g96c1c10c        4    1       None  ( 1.0, 0.0, 0.0, 1.0)  True    CoilPF  DivUp1Lin       TFG_CoilPF_ExpWEST_DivUp1Lin_sh00000_Vers1.5.0-3-g96c1c10c    10   1       None  ( 1.0, 0.0, 0.0, 1.0)  True    CoilPF  DuLin           TFG_CoilPF_ExpWEST_DuLin_sh00000_Vers1.5.0-3-g96c1c10c        4    1       None  ( 1.0, 0.0, 0.0, 1.0)  True    CoilPF  BuLin           TFG_CoilPF_ExpWEST_BuLin_sh00000_Vers1.5.0-3-g96c1c10c        4    1       None  ( 1.0, 0.0, 0.0, 1.0)  True    CoilPF  DlLin           TFG_CoilPF_ExpWEST_DlLin_sh00000_Vers1.5.0-3-g96c1c10c        4    1       None  ( 1.0, 0.0, 0.0, 1.0)  True    CoilPF  DivUp2Lin       TFG_CoilPF_ExpWEST_DivUp2Lin_sh00000_Vers1.5.0-3-g96c1c10c    10   1       None  ( 1.0, 0.0, 0.0, 1.0)  True    CoilCS  V0Lin           TFG_CoilCS_ExpWEST_V0Lin_sh00000_Vers1.5.0-3-g96c1c10c        4    1       None  ( 1.0, 0.0, 0.0, 1.0)  True, 'Tor': tot. Struct  tot. occur  tot. points -----------  ----------  ----------- 27           53          540          class   Name            SaveName                                                      nP   noccur  move  color                     visible ------  --------------  ------------------------------------------------------------  ---  ------  ----  ------------------------  ------- Ves     VesInTor        TFG_Ves_ExpWEST_VesInTor_sh00000_Vers1.5.0-3-g96c1c10c        100  0       None  ( 0.0, 0.0, 0.0, 1.0)  True    Ves     VesOutTor       TFG_Ves_ExpWEST_VesOutTor_sh00000_Vers1.5.0-3-g96c1c10c       100  0       None  ( 0.0, 0.0, 0.0, 1.0)  True    PFC     BaffleTor       TFG_PFC_ExpWEST_BaffleTor_sh00000_Vers1.5.0-3-g96c1c10c       13   0       None  ( 0.8, 0.8, 0.8, 0.8)  True    PFC     BumperInnerTor  TFG_PFC_ExpWEST_BumperInnerTor_sh00000_Vers1.5.0-3-g96c1c10c  15   6       None  ( 0.8, 0.8, 0.8, 0.8)  True    PFC     BumperOuterTor  TFG_PFC_ExpWEST_BumperOuterTor_sh00000_Vers1.5.0-3-g96c1c10c  16   1       None  ( 0.8, 0.8, 0.8, 0.8)  True    PFC     DivLowITERTor   TFG_PFC_ExpWEST_DivLowITERTor_sh00000_Vers1.5.0-3-g96c1c10c   12   0       None  ( 0.8, 0.8, 0.8, 0.8)  True    PFC     IC3Tor          TFG_PFC_ExpWEST_IC3Tor_sh00000_Vers1.5.0-3-g96c1c10c          39   3       None  ( 0.8, 0.8, 0.8, 0.8)  True    PFC     DivUpTor        TFG_PFC_ExpWEST_DivUpTor_sh00000_Vers1.5.0-3-g96c1c10c        4    0       None  ( 0.8, 0.8, 0.8, 0.8)  True    PFC     LH2Tor          TFG_PFC_ExpWEST_LH2Tor_sh00000_Vers1.5.0-3-g96c1c10c          39   3       None  ( 0.8, 0.8, 0.8, 0.8)  True    PFC     LH1Tor          TFG_PFC_ExpWEST_LH1Tor_sh00000_Vers1.5.0-3-g96c1c10c          39   3       None  ( 0.8, 0.8, 0.8, 0.8)  True    PFC     DivLowGCTor     TFG_PFC_ExpWEST_DivLowGCTor_sh00000_Vers1.5.0-3-g96c1c10c     4    0       None  ( 0.8, 0.8, 0.8, 0.8)  True    PFC     RippleTor       TFG_PFC_ExpWEST_RippleTor_sh00000_Vers1.5.0-3-g96c1c10c       5    12      None  ( 0.8, 0.8, 0.8, 0.8)  True    PFC     IC2Tor          TFG_PFC_ExpWEST_IC2Tor_sh00000_Vers1.5.0-3-g96c1c10c          39   3       None  ( 0.8, 0.8, 0.8, 0.8)  True    PFC     IC1Tor          TFG_PFC_ExpWEST_IC1Tor_sh00000_Vers1.5.0-3-g96c1c10c          39   3       None  ( 0.8, 0.8, 0.8, 0.8)  True    CoilPF  BlTor           TFG_CoilPF_ExpWEST_BlTor_sh00000_Vers1.5.0-3-g96c1c10c        4    0       None  ( 1.0, 0.0, 0.0, 1.0)  True    CoilPF  ElTor           TFG_CoilPF_ExpWEST_ElTor_sh00000_Vers1.5.0-3-g96c1c10c        4    0       None  ( 1.0, 0.0, 0.0, 1.0)  True    CoilPF  DivLow2Tor      TFG_CoilPF_ExpWEST_DivLow2Tor_sh00000_Vers1.5.0-3-g96c1c10c   10   0       None  ( 1.0, 0.0, 0.0, 1.0)  True    CoilPF  EuTor           TFG_CoilPF_ExpWEST_EuTor_sh00000_Vers1.5.0-3-g96c1c10c        4    0       None  ( 1.0, 0.0, 0.0, 1.0)  True    CoilPF  DivLow1Tor      TFG_CoilPF_ExpWEST_DivLow1Tor_sh00000_Vers1.5.0-3-g96c1c10c   10   0       None  ( 1.0, 0.0, 0.0, 1.0)  True    CoilPF  FlTor           TFG_CoilPF_ExpWEST_FlTor_sh00000_Vers1.5.0-3-g96c1c10c        4    0       None  ( 1.0, 0.0, 0.0, 1.0)  True    CoilPF  FuTor           TFG_CoilPF_ExpWEST_FuTor_sh00000_Vers1.5.0-3-g96c1c10c        4    0       None  ( 1.0, 0.0, 0.0, 1.0)  True    CoilPF  DivUp1Tor       TFG_CoilPF_ExpWEST_DivUp1Tor_sh00000_Vers1.5.0-3-g96c1c10c    10   0       None  ( 1.0, 0.0, 0.0, 1.0)  True    CoilPF  DuTor           TFG_CoilPF_ExpWEST_DuTor_sh00000_Vers1.5.0-3-g96c1c10c        4    0       None  ( 1.0, 0.0, 0.0, 1.0)  True    CoilPF  BuTor           TFG_CoilPF_ExpWEST_BuTor_sh00000_Vers1.5.0-3-g96c1c10c        4    0       None  ( 1.0, 0.0, 0.0, 1.0)  True    CoilPF  DlTor           TFG_CoilPF_ExpWEST_DlTor_sh00000_Vers1.5.0-3-g96c1c10c        4    0       None  ( 1.0, 0.0, 0.0, 1.0)  True    CoilPF  DivUp2Tor       TFG_CoilPF_ExpWEST_DivUp2Tor_sh00000_Vers1.5.0-3-g96c1c10c    10   0       None  ( 1.0, 0.0, 0.0, 1.0)  True    CoilCS  V0Tor           TFG_CoilCS_ExpWEST_V0Tor_sh00000_Vers1.5.0-3-g96c1c10c        4    0       None  ( 1.0, 0.0, 0.0, 1.0)  True   }, verb=False)[source]
classmethod teardown_class()[source]
test01_todict()[source]
test02_fromdict()[source]
test03_copy_equal()[source]
test04_get_nbytes()[source]
test05_strip_nbytes(verb=False)[source]
test06_set_dsino()[source]
test07_addremove_struct()[source]
test08_setget_color()[source]
test09_get_summary()[source]
test10_isInside(NR=20, NZ=20, NThet=10)[source]
test11_setget_visible()[source]
test12_plot()[source]
test13_plot_sino()[source]
test14_from_svg()[source]
test15_load_config()[source]
test16_calc_solidangle_particle()[source]
test17_calc_solidangle_particle_integrated()[source]
test18_saveload(verb=False)[source]
class tofu.tests.tests01_geom.test_03_core.Test03_Rays[source]

Bases: object

setup()[source]
classmethod setup_class(dobj={'Lin': {'CamLOS1D': nb. los  av. length  min length  max length  nb. touch  av. angle  min angle  max angle -------  ----------  ----------  ----------  ---------  ---------  ---------  --------- 100      2.566       2.258       2.892       2          0.53       0.25       1.47       los index  length  touch               angle (rad) ---------  ------  ------------------  ----------- 0          2.892   Ves_VesInLin        0.67        1          2.876   Ves_VesInLin        0.67        2          2.611   PFC_BumperInnerLin  1.04        3          2.597   PFC_BumperInnerLin  1.05        4          2.584   PFC_BumperInnerLin  1.06        5          2.57    PFC_BumperInnerLin  0.55        6          2.557   PFC_BumperInnerLin  0.54        7          2.544   PFC_BumperInnerLin  0.53        8          2.532   PFC_BumperInnerLin  0.53        9          2.571   PFC_BumperInnerLin  0.52        10         2.621   PFC_BumperInnerLin  0.51        11         2.734   Ves_VesInLin        0.6         12         2.721   Ves_VesInLin        0.59        13         2.708   Ves_VesInLin        0.58        14         2.696   Ves_VesInLin        0.57        15         2.684   Ves_VesInLin        0.57        16         2.673   Ves_VesInLin        0.56        17         2.661   Ves_VesInLin        0.55        18         2.65    Ves_VesInLin        0.55        19         2.639   Ves_VesInLin        0.54        20         2.629   Ves_VesInLin        0.53        21         2.619   Ves_VesInLin        0.53        22         2.609   Ves_VesInLin        0.52        23         2.6     Ves_VesInLin        0.51        24         2.59    Ves_VesInLin        0.51        25         2.581   Ves_VesInLin        0.5         26         2.573   Ves_VesInLin        0.5         27         2.565   Ves_VesInLin        0.49        28         2.557   Ves_VesInLin        0.48        29         2.549   Ves_VesInLin        0.48        30         2.542   Ves_VesInLin        0.47        31         2.535   Ves_VesInLin        0.47        32         2.529   Ves_VesInLin        0.46        33         2.522   Ves_VesInLin        0.46        34         2.517   Ves_VesInLin        0.45        35         2.511   Ves_VesInLin        0.45        36         2.506   Ves_VesInLin        0.44        37         2.501   Ves_VesInLin        0.44        38         2.497   Ves_VesInLin        0.44        39         2.493   Ves_VesInLin        0.43        40         2.489   Ves_VesInLin        0.43        41         2.269   PFC_BumperInnerLin  1.47        42         2.266   PFC_BumperInnerLin  0.26        43         2.264   PFC_BumperInnerLin  0.26        44         2.262   PFC_BumperInnerLin  0.25        45         2.26    PFC_BumperInnerLin  0.25        46         2.259   PFC_BumperInnerLin  0.25        47         2.258   PFC_BumperInnerLin  0.25        48         2.473   Ves_VesInLin        0.42        49         2.473   Ves_VesInLin        0.41        50         2.473   Ves_VesInLin        0.41        51         2.473   Ves_VesInLin        0.42        52         2.474   Ves_VesInLin        0.42        53         2.475   Ves_VesInLin        0.42        54         2.476   Ves_VesInLin        0.42        55         2.478   Ves_VesInLin        0.42        56         2.48    Ves_VesInLin        0.42        57         2.483   Ves_VesInLin        0.42        58         2.486   Ves_VesInLin        0.43        59         2.489   Ves_VesInLin        0.43        60         2.493   Ves_VesInLin        0.43        61         2.497   Ves_VesInLin        0.44        62         2.501   Ves_VesInLin        0.44        63         2.506   Ves_VesInLin        0.44        64         2.511   Ves_VesInLin        0.45        65         2.517   Ves_VesInLin        0.45        66         2.522   Ves_VesInLin        0.46        67         2.529   Ves_VesInLin        0.46        68         2.535   Ves_VesInLin        0.47        69         2.542   Ves_VesInLin        0.47        70         2.549   Ves_VesInLin        0.48        71         2.557   Ves_VesInLin        0.48        72         2.565   Ves_VesInLin        0.49        73         2.573   Ves_VesInLin        0.5         74         2.581   Ves_VesInLin        0.5         75         2.59    Ves_VesInLin        0.51        76         2.6     Ves_VesInLin        0.51        77         2.609   Ves_VesInLin        0.52        78         2.619   Ves_VesInLin        0.53        79         2.496   PFC_BumperInnerLin  0.42        80         2.426   PFC_BumperInnerLin  0.43        81         2.419   PFC_BumperInnerLin  0.44        82         2.429   PFC_BumperInnerLin  0.45        83         2.439   PFC_BumperInnerLin  0.46        84         2.45    PFC_BumperInnerLin  0.47        85         2.461   PFC_BumperInnerLin  1.16        86         2.472   PFC_BumperInnerLin  1.15        87         2.721   Ves_VesInLin        0.59        88         2.734   Ves_VesInLin        0.6         89         2.747   Ves_VesInLin        0.6         90         2.76    Ves_VesInLin        0.61        91         2.774   Ves_VesInLin        0.62        92         2.787   Ves_VesInLin        0.62        93         2.802   Ves_VesInLin        0.63        94         2.816   Ves_VesInLin        0.64        95         2.831   Ves_VesInLin        0.64        96         2.845   Ves_VesInLin        0.65        97         2.861   Ves_VesInLin        0.66        98         2.876   Ves_VesInLin        0.67        99         2.892   Ves_VesInLin        0.67, 'CamLOS2D': nb. los  av. length  min length  max length  nb. touch  av. angle  min angle  max angle -------  ----------  ----------  ----------  ---------  ---------  ---------  --------- 10000    2.245       0.000       3.064       6          0.72       0.01       1.57     }, 'Tor': {'CamLOS1D': nb. los  av. length  min length  max length  nb. touch  av. angle  min angle  max angle -------  ----------  ----------  ----------  ---------  ---------  ---------  --------- 100      2.292       0.601       6.207       3          0.70       0.22       1.49       los index  length  touch               angle (rad) ---------  ------  ------------------  ----------- 0          5.387   PFC_LH2Tor          0.72        1          5.424   PFC_LH2Tor          0.71        2          2.703   PFC_BumperInnerTor  1.36        3          2.607   PFC_BumperInnerTor  1.29        4          2.532   PFC_BumperInnerTor  1.24        5          2.496   PFC_BumperInnerTor  0.36        6          2.505   PFC_BumperInnerTor  0.37        7          2.514   PFC_BumperInnerTor  0.38        8          6.11    Ves_VesInTor        0.55        9          6.143   Ves_VesInTor        0.54        10         6.175   Ves_VesInTor        0.53        11         6.207   Ves_VesInTor        0.52        12         3.127   Ves_VesInTor        1.49        13         2.931   Ves_VesInTor        1.35        14         2.824   Ves_VesInTor        1.27        15         2.744   Ves_VesInTor        1.2         16         2.678   Ves_VesInTor        1.15        17         2.622   Ves_VesInTor        1.1         18         2.573   Ves_VesInTor        1.05        19         2.529   Ves_VesInTor        1.01        20         2.49    Ves_VesInTor        0.97        21         2.454   Ves_VesInTor        0.93        22         2.421   Ves_VesInTor        0.89        23         2.391   Ves_VesInTor        0.85        24         2.363   Ves_VesInTor        0.82        25         2.337   Ves_VesInTor        0.78        26         2.313   Ves_VesInTor        0.75        27         2.291   Ves_VesInTor        0.72        28         2.27    Ves_VesInTor        0.69        29         2.25    Ves_VesInTor        0.66        30         2.232   Ves_VesInTor        0.63        31         2.216   Ves_VesInTor        0.6         32         2.2     Ves_VesInTor        0.57        33         2.186   Ves_VesInTor        0.54        34         2.172   Ves_VesInTor        0.51        35         2.16    Ves_VesInTor        0.48        36         2.148   Ves_VesInTor        0.46        37         2.138   Ves_VesInTor        0.43        38         2.128   Ves_VesInTor        0.4         39         2.12    Ves_VesInTor        0.38        40         2.112   Ves_VesInTor        0.36        41         2.105   Ves_VesInTor        0.33        42         2.098   Ves_VesInTor        0.31        43         2.093   Ves_VesInTor        0.29        44         2.089   Ves_VesInTor        0.27        45         2.085   Ves_VesInTor        0.26        46         2.082   Ves_VesInTor        0.24        47         2.079   Ves_VesInTor        0.23        48         2.078   Ves_VesInTor        0.22        49         2.077   Ves_VesInTor        0.22        50         2.077   Ves_VesInTor        0.22        51         2.078   Ves_VesInTor        0.22        52         2.079   Ves_VesInTor        0.23        53         2.082   Ves_VesInTor        0.24        54         2.085   Ves_VesInTor        0.26        55         2.089   Ves_VesInTor        0.27        56         2.093   Ves_VesInTor        0.29        57         2.098   Ves_VesInTor        0.31        58         2.105   Ves_VesInTor        0.33        59         2.112   Ves_VesInTor        0.36        60         2.12    Ves_VesInTor        0.38        61         2.128   Ves_VesInTor        0.4         62         2.138   Ves_VesInTor        0.43        63         2.148   Ves_VesInTor        0.46        64         1.827   PFC_BumperInnerTor  1.22        65         1.801   PFC_BumperInnerTor  0.38        66         1.81    PFC_BumperInnerTor  0.4         67         1.819   PFC_BumperInnerTor  0.43        68         1.829   PFC_BumperInnerTor  0.45        69         1.84    PFC_BumperInnerTor  0.48        70         1.851   PFC_BumperInnerTor  0.5         71         1.863   PFC_BumperInnerTor  0.52        72         1.875   PFC_BumperInnerTor  0.55        73         1.889   PFC_BumperInnerTor  0.57        74         1.903   PFC_BumperInnerTor  0.6         75         1.918   PFC_BumperInnerTor  0.62        76         1.934   PFC_BumperInnerTor  0.65        77         1.95    PFC_BumperInnerTor  0.68        78         2.454   Ves_VesInTor        0.93        79         2.49    Ves_VesInTor        0.97        80         2.529   Ves_VesInTor        1.01        81         2.573   Ves_VesInTor        1.05        82         2.622   Ves_VesInTor        1.1         83         2.678   Ves_VesInTor        1.15        84         2.744   Ves_VesInTor        1.2         85         2.824   Ves_VesInTor        1.27        86         2.931   Ves_VesInTor        1.35        87         3.127   Ves_VesInTor        1.49        88         0.683   PFC_LH2Tor          1.03        89         0.673   PFC_LH2Tor          1.02        90         0.664   PFC_LH2Tor          1.01        91         0.656   PFC_LH2Tor          1.0         92         0.648   PFC_LH2Tor          0.99        93         0.64    PFC_LH2Tor          0.98        94         0.633   PFC_LH2Tor          0.97        95         0.626   PFC_LH2Tor          0.96        96         0.619   PFC_LH2Tor          0.95        97         0.613   PFC_LH2Tor          0.94        98         0.607   PFC_LH2Tor          0.93        99         0.601   PFC_LH2Tor          0.92, 'CamLOS2D': nb. los  av. length  min length  max length  nb. touch  av. angle  min angle  max angle -------  ----------  ----------  ----------  ---------  ---------  ---------  --------- 10000    1.902       0.601       6.266       10         0.78       0.02       1.54     }}, verb=False)[source]
teardown()[source]
classmethod teardown_class()[source]
test00_set_move()[source]
test01_todict()[source]
test02_fromdict()[source]
test03_copy_equal()[source]
test04_get_nbytes()[source]
test05_strip_nbytes(verb=False)[source]
test06_set_move_None()[source]
test07_rotate_copy()[source]
test07_set_dsino()[source]
test08_select()[source]
test09_get_sample()[source]
test10_calc_kInkOut_Isoflux()[source]
test11_calc_signal()[source]
test12_plot()[source]
test13_plot_sino()[source]
test14_plot_touch()[source]
test15_saveload(verb=False)[source]
test16_get_sample_same_res_unit()[source]
tofu.tests.tests01_geom.test_03_core.setup_module(module)[source]
tofu.tests.tests01_geom.test_03_core.teardown_module(module)[source]

tofu.tests.tests01_geom.test_04_sampling module

Tests of the functions in sampling_tools.pxd or their wrappers found in tofu.geom.

tofu.tests.tests01_geom.test_04_sampling.test01_ves_mesh_dlfroml()[source]
tofu.tests.tests01_geom.test_04_sampling.test02_discretize_vpoly(VPoly=array([[3.00000000e+00, 2.99798668e+00, 2.99195481e+00, 2.98192870e+00, 2.96794870e+00, 2.95007112e+00, 2.92836793e+00, 2.90292654e+00, 2.87384938e+00, 2.84125353e+00, 2.80527026e+00, 2.76604444e+00, 2.72373404e+00, 2.67850941e+00, 2.63055267e+00, 2.58005691e+00, 2.52722547e+00, 2.47227107e+00, 2.41541501e+00, 2.35688622e+00, 2.29692038e+00, 2.23575894e+00, 2.17364818e+00, 2.11083820e+00, 2.04758192e+00, 1.98413404e+00, 1.92075004e+00, 1.85768516e+00, 1.79519333e+00, 1.73352619e+00, 1.67293204e+00, 1.61365487e+00, 1.55593339e+00, 1.50000000e+00, 1.44607994e+00, 1.39439031e+00, 1.34513927e+00, 1.29852511e+00, 1.25473555e+00, 1.21394691e+00, 1.17632342e+00, 1.14201659e+00, 1.11116455e+00, 1.08389154e+00, 1.06030738e+00, 1.04050703e+00, 1.02457021e+00, 1.01256111e+00, 1.00452808e+00, 1.00050346e+00, 1.00050346e+00, 1.00452808e+00, 1.01256111e+00, 1.02457021e+00, 1.04050703e+00, 1.06030738e+00, 1.08389154e+00, 1.11116455e+00, 1.14201659e+00, 1.17632342e+00, 1.21394691e+00, 1.25473555e+00, 1.29852511e+00, 1.34513927e+00, 1.39439031e+00, 1.44607994e+00, 1.50000000e+00, 1.55593339e+00, 1.61365487e+00, 1.67293204e+00, 1.73352619e+00, 1.79519333e+00, 1.85768516e+00, 1.92075004e+00, 1.98413404e+00, 2.04758192e+00, 2.11083820e+00, 2.17364818e+00, 2.23575894e+00, 2.29692038e+00, 2.35688622e+00, 2.41541501e+00, 2.47227107e+00, 2.52722547e+00, 2.58005691e+00, 2.63055267e+00, 2.67850941e+00, 2.72373404e+00, 2.76604444e+00, 2.80527026e+00, 2.84125353e+00, 2.87384938e+00, 2.90292654e+00, 2.92836793e+00, 2.95007112e+00, 2.96794870e+00, 2.98192870e+00, 2.99195481e+00, 2.99798668e+00, 3.00000000e+00], [0.00000000e+00, 6.34239197e-02, 1.26592454e-01, 1.89251244e-01, 2.51147987e-01, 3.12033446e-01, 3.71662456e-01, 4.29794912e-01, 4.86196736e-01, 5.40640817e-01, 5.92907929e-01, 6.42787610e-01, 6.90079011e-01, 7.34591709e-01, 7.76146464e-01, 8.14575952e-01, 8.49725430e-01, 8.81453363e-01, 9.09631995e-01, 9.34147860e-01, 9.54902241e-01, 9.71811568e-01, 9.84807753e-01, 9.93838464e-01, 9.98867339e-01, 9.99874128e-01, 9.96854776e-01, 9.89821442e-01, 9.78802446e-01, 9.63842159e-01, 9.45000819e-01, 9.22354294e-01, 8.95993774e-01, 8.66025404e-01, 8.32569855e-01, 7.95761841e-01, 7.55749574e-01, 7.12694171e-01, 6.66769001e-01, 6.18158986e-01, 5.67059864e-01, 5.13677392e-01, 4.58226522e-01, 4.00930535e-01, 3.42020143e-01, 2.81732557e-01, 2.20310533e-01, 1.58001396e-01, 9.50560433e-02, 3.17279335e-02, - 3.17279335e-02, - 9.50560433e-02, - 1.58001396e-01, - 2.20310533e-01, - 2.81732557e-01, - 3.42020143e-01, - 4.00930535e-01, - 4.58226522e-01, - 5.13677392e-01, - 5.67059864e-01, - 6.18158986e-01, - 6.66769001e-01, - 7.12694171e-01, - 7.55749574e-01, - 7.95761841e-01, - 8.32569855e-01, - 8.66025404e-01, - 8.95993774e-01, - 9.22354294e-01, - 9.45000819e-01, - 9.63842159e-01, - 9.78802446e-01, - 9.89821442e-01, - 9.96854776e-01, - 9.99874128e-01, - 9.98867339e-01, - 9.93838464e-01, - 9.84807753e-01, - 9.71811568e-01, - 9.54902241e-01, - 9.34147860e-01, - 9.09631995e-01, - 8.81453363e-01, - 8.49725430e-01, - 8.14575952e-01, - 7.76146464e-01, - 7.34591709e-01, - 6.90079011e-01, - 6.42787610e-01, - 5.92907929e-01, - 5.40640817e-01, - 4.86196736e-01, - 4.29794912e-01, - 3.71662456e-01, - 3.12033446e-01, - 2.51147987e-01, - 1.89251244e-01, - 1.26592454e-01, - 6.34239197e-02, - 2.44929360e-16]]))[source]
tofu.tests.tests01_geom.test_04_sampling.test03_Ves_Vmesh_Tor()[source]
tofu.tests.tests01_geom.test_04_sampling.test04_ves_vmesh_lin()[source]
tofu.tests.tests01_geom.test_04_sampling.test05_sa_integ_map(ves_poly=array([[3.00000000e+00, 2.99798668e+00, 2.99195481e+00, 2.98192870e+00, 2.96794870e+00, 2.95007112e+00, 2.92836793e+00, 2.90292654e+00, 2.87384938e+00, 2.84125353e+00, 2.80527026e+00, 2.76604444e+00, 2.72373404e+00, 2.67850941e+00, 2.63055267e+00, 2.58005691e+00, 2.52722547e+00, 2.47227107e+00, 2.41541501e+00, 2.35688622e+00, 2.29692038e+00, 2.23575894e+00, 2.17364818e+00, 2.11083820e+00, 2.04758192e+00, 1.98413404e+00, 1.92075004e+00, 1.85768516e+00, 1.79519333e+00, 1.73352619e+00, 1.67293204e+00, 1.61365487e+00, 1.55593339e+00, 1.50000000e+00, 1.44607994e+00, 1.39439031e+00, 1.34513927e+00, 1.29852511e+00, 1.25473555e+00, 1.21394691e+00, 1.17632342e+00, 1.14201659e+00, 1.11116455e+00, 1.08389154e+00, 1.06030738e+00, 1.04050703e+00, 1.02457021e+00, 1.01256111e+00, 1.00452808e+00, 1.00050346e+00, 1.00050346e+00, 1.00452808e+00, 1.01256111e+00, 1.02457021e+00, 1.04050703e+00, 1.06030738e+00, 1.08389154e+00, 1.11116455e+00, 1.14201659e+00, 1.17632342e+00, 1.21394691e+00, 1.25473555e+00, 1.29852511e+00, 1.34513927e+00, 1.39439031e+00, 1.44607994e+00, 1.50000000e+00, 1.55593339e+00, 1.61365487e+00, 1.67293204e+00, 1.73352619e+00, 1.79519333e+00, 1.85768516e+00, 1.92075004e+00, 1.98413404e+00, 2.04758192e+00, 2.11083820e+00, 2.17364818e+00, 2.23575894e+00, 2.29692038e+00, 2.35688622e+00, 2.41541501e+00, 2.47227107e+00, 2.52722547e+00, 2.58005691e+00, 2.63055267e+00, 2.67850941e+00, 2.72373404e+00, 2.76604444e+00, 2.80527026e+00, 2.84125353e+00, 2.87384938e+00, 2.90292654e+00, 2.92836793e+00, 2.95007112e+00, 2.96794870e+00, 2.98192870e+00, 2.99195481e+00, 2.99798668e+00, 3.00000000e+00], [0.00000000e+00, 6.34239197e-02, 1.26592454e-01, 1.89251244e-01, 2.51147987e-01, 3.12033446e-01, 3.71662456e-01, 4.29794912e-01, 4.86196736e-01, 5.40640817e-01, 5.92907929e-01, 6.42787610e-01, 6.90079011e-01, 7.34591709e-01, 7.76146464e-01, 8.14575952e-01, 8.49725430e-01, 8.81453363e-01, 9.09631995e-01, 9.34147860e-01, 9.54902241e-01, 9.71811568e-01, 9.84807753e-01, 9.93838464e-01, 9.98867339e-01, 9.99874128e-01, 9.96854776e-01, 9.89821442e-01, 9.78802446e-01, 9.63842159e-01, 9.45000819e-01, 9.22354294e-01, 8.95993774e-01, 8.66025404e-01, 8.32569855e-01, 7.95761841e-01, 7.55749574e-01, 7.12694171e-01, 6.66769001e-01, 6.18158986e-01, 5.67059864e-01, 5.13677392e-01, 4.58226522e-01, 4.00930535e-01, 3.42020143e-01, 2.81732557e-01, 2.20310533e-01, 1.58001396e-01, 9.50560433e-02, 3.17279335e-02, - 3.17279335e-02, - 9.50560433e-02, - 1.58001396e-01, - 2.20310533e-01, - 2.81732557e-01, - 3.42020143e-01, - 4.00930535e-01, - 4.58226522e-01, - 5.13677392e-01, - 5.67059864e-01, - 6.18158986e-01, - 6.66769001e-01, - 7.12694171e-01, - 7.55749574e-01, - 7.95761841e-01, - 8.32569855e-01, - 8.66025404e-01, - 8.95993774e-01, - 9.22354294e-01, - 9.45000819e-01, - 9.63842159e-01, - 9.78802446e-01, - 9.89821442e-01, - 9.96854776e-01, - 9.99874128e-01, - 9.98867339e-01, - 9.93838464e-01, - 9.84807753e-01, - 9.71811568e-01, - 9.54902241e-01, - 9.34147860e-01, - 9.09631995e-01, - 8.81453363e-01, - 8.49725430e-01, - 8.14575952e-01, - 7.76146464e-01, - 7.34591709e-01, - 6.90079011e-01, - 6.42787610e-01, - 5.92907929e-01, - 5.40640817e-01, - 4.86196736e-01, - 4.29794912e-01, - 3.71662456e-01, - 3.12033446e-01, - 2.51147987e-01, - 1.89251244e-01, - 1.26592454e-01, - 6.34239197e-02, - 2.44929360e-16]]), debug=0)[source]

tofu.tests.tests01_geom.testing_tools module

Functions that are used in different tests

tofu.tests.tests01_geom.testing_tools.compute_min_max_r_and_z(ves_poly)[source]
tofu.tests.tests01_geom.testing_tools.compute_ves_norm(ves_poly)[source]