Coverage for python/gsfit/database_readers/freegs/__init__.py: 0%
47 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
3from gsfit_rs import BpProbes
4from gsfit_rs import Coils
5from gsfit_rs import Dialoop
6from gsfit_rs import FluxLoops
7from gsfit_rs import Isoflux
8from gsfit_rs import IsofluxBoundary
9from gsfit_rs import Passives
10from gsfit_rs import Plasma
11from gsfit_rs import Pressure
12from gsfit_rs import RogowskiCoils
13from gsfit_rs import StationaryPoint
15from ..interface import DatabaseReaderProtocol
16from .setup_bp_probes import setup_bp_probes
17from .setup_coils import setup_coils
18from .setup_dialoop import setup_dialoop
19from .setup_flux_loops import setup_flux_loops
20from .setup_isoflux_boundary_sensors import setup_isoflux_boundary_sensors
21from .setup_isoflux_sensors import setup_isoflux_sensors
22from .setup_passives import setup_passives
23from .setup_plasma import setup_plasma
24from .setup_pressure_sensors import setup_pressure_sensors
25from .setup_rogowski_coils import setup_rogowski_coils
26from .setup_stationary_point_sensors import setup_stationary_point_sensors
29class DatabaseReader(DatabaseReaderProtocol):
30 """
31 This class inherits from the DatabaseReaderProtocol, which defines the inputs and outputs to the class methods.
32 The methods in this class are used to initialise the Rust implementations.
33 Here we are binding the methods to the class.
35 See `python/gsfit/database_readers/interface.py` for the interface definitions.
36 """
38 def setup_bp_probes(self, *args: typing.Any, **kwargs: typing.Any) -> BpProbes:
39 return setup_bp_probes(self, *args, **kwargs)
41 def setup_coils(self, *args: typing.Any, **kwargs: typing.Any) -> Coils:
42 return setup_coils(self, *args, **kwargs)
44 def setup_dialoop(self, *args: typing.Any, **kwargs: typing.Any) -> Dialoop:
45 return setup_dialoop(self, *args, **kwargs)
47 def setup_flux_loops(self, *args: typing.Any, **kwargs: typing.Any) -> FluxLoops:
48 return setup_flux_loops(self, *args, **kwargs)
50 def setup_isoflux_boundary_sensors(self, *args: typing.Any, **kwargs: typing.Any) -> IsofluxBoundary:
51 return setup_isoflux_boundary_sensors(self, *args, **kwargs)
53 def setup_isoflux_sensors(self, *args: typing.Any, **kwargs: typing.Any) -> Isoflux:
54 return setup_isoflux_sensors(self, *args, **kwargs)
56 def setup_stationary_point_sensors(self, *args: typing.Any, **kwargs: typing.Any) -> StationaryPoint:
57 return setup_stationary_point_sensors(self, *args, **kwargs)
59 def setup_passives(self, *args: typing.Any, **kwargs: typing.Any) -> Passives:
60 return setup_passives(self, *args, **kwargs)
62 def setup_plasma(self, *args: typing.Any, **kwargs: typing.Any) -> Plasma:
63 return setup_plasma(self, *args, **kwargs)
65 def setup_pressure_sensors(self, *args: typing.Any, **kwargs: typing.Any) -> Pressure:
66 return setup_pressure_sensors(self, *args, **kwargs)
68 def setup_rogowski_coils(self, *args: typing.Any, **kwargs: typing.Any) -> RogowskiCoils:
69 return setup_rogowski_coils(self, *args, **kwargs)