Coverage for python/gsfit/database_readers/st40_astra_mdsplus/setup_pressure_sensors.py: 0%

7 statements  

« prev     ^ index     » next       coverage.py v7.15.0, created at 2026-07-07 13:12 +0000

1import typing 

2from typing import TYPE_CHECKING 

3 

4from gsfit_rs import Pressure 

5from st40_database import GetData 

6 

7if TYPE_CHECKING: 

8 from . import DatabaseReader 

9 

10 

11def setup_pressure_sensors( 

12 self: "DatabaseReader", 

13 pulseNo: int, 

14 settings: dict[str, typing.Any], 

15) -> Pressure: 

16 """ 

17 This method initialises the Rust `Pressure` class. 

18 

19 :param pulseNo: Pulse number, used to read from the database 

20 :param settings: Dictionary containing the JSON settings read from the `settings` directory 

21 

22 **This method is specific to ST40's ASTRA stored on MDSplus.** 

23 

24 See `python/gsfit/database_readers/interface.py` for more details on how a new database_reader should be implemented. 

25 """ 

26 

27 # Initialise the Pressure Rust class 

28 pressure = Pressure() 

29 

30 return pressure