Coverage for python/gsfit/database_readers/mock_st40_mdsplus/setup_dialoop.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 Dialoop
6if TYPE_CHECKING:
7 from . import DatabaseReader
10def setup_dialoop(
11 self: "DatabaseReader",
12 pulseNo: int,
13 settings: dict[str, typing.Any],
14) -> Dialoop:
15 """
16 This method initialises the Rust `Dialoop` 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 `Dialoop` 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 Dialoop Rust class
29 dialoop = Dialoop()
31 return dialoop