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
« prev ^ index » next coverage.py v7.16.2, created at 2026-10-14 15:25 +0000
1import typing
2from typing import TYPE_CHECKING
4from gsfit_rs import Pressure
6if TYPE_CHECKING:
7 from . import DatabaseReader
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.
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
21 **This method is specific to a mock of ST40's experimental MDSplus database.**
23 The mock only stores magnetics, so an empty `Pressure` class is returned.
25 See `python/gsfit/database_readers/interface.py` for more details on how a new database_reader should be implemented.
26 """
28 # Initialise the Pressure Rust class
29 pressure = Pressure()
31 return pressure