Coverage for python/gsfit/database_readers/freegs/setup_dialoop.py: 0%
9 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
4import freegs
5import numpy as np
6import numpy.typing as npt
7from gsfit_rs import Dialoop
9if TYPE_CHECKING:
10 from . import DatabaseReader
13def setup_dialoop(
14 self: "DatabaseReader",
15 pulseNo: int,
16 settings: dict[str, typing.Any],
17 time: npt.NDArray[np.float64],
18 freegs_eqs: list[freegs.equilibrium.Equilibrium],
19) -> Dialoop:
20 """
21 This method initialises the Rust `Dialoop` class.
23 :param pulseNo: Pulse number, used to read from the database
24 :param settings: Dictionary containing the JSON settings read from the `settings` directory
25 :param time: Measured time vector
26 :param freegs_eqs: List of FreeGS equilibrium objects, one for each time-slice
28 **This method is specific to FreeGS.**
30 See `python/gsfit/database_readers/interface.py` for more details on how a new database_reader should be implemented.
31 """
33 # Initialise the Dialoop Rust class
34 dialoop = Dialoop()
36 # TODO: implement the method
38 return dialoop