22# Python standard libraries
33import numpy as np
44import logging
5- from typing import List
65
76# Local libraries
87from femmt .enumerations import *
@@ -19,7 +18,7 @@ class TwoDaxiSymmetric:
1918 """
2019
2120 core : Core
22- winding_windows : List [WindingWindow ]
21+ winding_windows : list [WindingWindow ]
2322 air_gaps : AirGaps
2423 stray_path : StrayPath
2524 insulation : Insulation
@@ -34,11 +33,11 @@ class TwoDaxiSymmetric:
3433 p_region_bound : np .ndarray
3534 p_window : np .ndarray
3635 p_air_gaps : np .ndarray
37- # p_conductor: List[List [float]]
38- p_iso_core : List [ List [float ]]
39- p_iso_pri_sec : List [ List [float ]]
36+ # p_conductor: list[list [float]]
37+ p_iso_core : list [ list [float ]]
38+ p_iso_pri_sec : list [ list [float ]]
4039
41- def __init__ (self , core : Core , mesh_data : MeshData , air_gaps : AirGaps , winding_windows : List [WindingWindow ],
40+ def __init__ (self , core : Core , mesh_data : MeshData , air_gaps : AirGaps , winding_windows : list [WindingWindow ],
4241 stray_path : StrayPath , insulation : Insulation , component_type : ComponentType , number_of_windings : int , verbosity : Verbosity ):
4342 self .core = core
4443 self .mesh_data = mesh_data
@@ -1572,18 +1571,18 @@ def draw_model(self):
15721571 # self.draw_region_stacked()
15731572
15741573 @staticmethod
1575- def get_center_of_rect (p1 : List [float ], p2 : List [float ], p3 : List [float ], p4 : List [float ]):
1574+ def get_center_of_rect (p1 : list [float ], p2 : list [float ], p3 : list [float ], p4 : list [float ]):
15761575 """
15771576 Get center point of a rectangular conductor.
15781577
15791578 :param p1: Point 1 as a x,y-List
1580- :type p1: List [float]
1579+ :type p1: list [float]
15811580 :param p2: Point 1 as a x,y-List
1582- :type p2: List [float]
1581+ :type p2: list [float]
15831582 :param p3: Point 1 as a x,y-List
1584- :type p3: List [float]
1583+ :type p3: list [float]
15851584 :param p4: Point 1 as a x,y-List
1586- :type p4: List [float]
1585+ :type p4: list [float]
15871586 """
15881587 x_list = [p1 [0 ], p2 [0 ], p3 [0 ], p4 [0 ]]
15891588 y_list = [p1 [1 ], p2 [1 ], p3 [1 ], p4 [1 ]]
0 commit comments