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

6 statements  

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

1import typing 

2from typing import TYPE_CHECKING 

3 

4from gsfit_rs import Pressure 

5 

6if TYPE_CHECKING: 

7 from . import DatabaseReader 

8 

9 

10def setup_pressure_sensors( 

11 self: "DatabaseReader", 

12 pulseNo: int, 

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

14) -> Pressure: 

15 """ 

16 This method initialises the Rust `Pressure` class. 

17 

18 :param pulseNo: Pulse number, used to select which mocked MDSplus tree to read 

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

20 

21 **This method is specific to a mock of ST40's experimental MDSplus database.** 

22 

23 The mock only stores magnetics, so an empty `Pressure` class is returned. 

24 

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

26 """ 

27 

28 # Initialise the Pressure Rust class 

29 pressure = Pressure() 

30 

31 return pressure