Coverage for python/gsfit/database_readers/st40_mdsplus/setup_pressure_sensors.py: 0%
7 statements
« prev ^ index » next coverage.py v7.15.0, created at 2026-07-07 13:12 +0000
« prev ^ index » next coverage.py v7.15.0, created at 2026-07-07 13:12 +0000
1import typing
2from typing import TYPE_CHECKING
4from gsfit_rs import Pressure
5from st40_database import GetData
7if TYPE_CHECKING:
8 from . import DatabaseReader
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.
19 :param pulseNo: Pulse number, used to read from the database
20 :param settings: Dictionary containing the JSON settings read from the `settings` directory
22 **This method is specific to ST40's experimental MDSplus database.**
24 See `python/gsfit/database_readers/interface.py` for more details on how a new database_reader should be implemented.
25 """
27 # Initialise the Pressure Rust class
28 pressure = Pressure()
30 return pressure