Coverage for python/gsfit/plotting/two_d_limiter.py: 0%

9 statements  

« prev     ^ index     » next       coverage.py v7.16.2, created at 2026-10-14 15:25 +0000

1import matplotlib.axes 

2from gsfit_rs.imas import wall_paths as wp 

3 

4from ..gsfit import Gsfit 

5 

6 

7def plot(gsfit_controller: Gsfit, ax: matplotlib.axes.Axes) -> None: 

8 # Every limiter unit is a plasma facing surface; `unit(0)` is the vacuum vessel contour and the 

9 # rest are tiles, so they are drawn one at a time rather than concatenated into one line 

10 n_unit = len(gsfit_controller.wall.get(wp.description_2d[0].limiter.unit[:].name)) 

11 for i_unit in range(n_unit): 

12 limit_pts_r = gsfit_controller.wall.get(wp.description_2d[0].limiter.unit[i_unit].outline.r) 

13 limit_pts_z = gsfit_controller.wall.get(wp.description_2d[0].limiter.unit[i_unit].outline.z) 

14 ax.plot(limit_pts_r, limit_pts_z, color="black", linewidth=0.5)