Coverage for python/gsfit/database_readers/st40_astra_mdsplus/setup_dialoop.py: 0%

8 statements  

« prev     ^ index     » next       coverage.py v7.15.0, created at 2026-07-07 13:12 +0000

1import typing 

2from typing import TYPE_CHECKING 

3 

4import numpy as np 

5from gsfit_rs import Dialoop 

6from st40_database import GetData 

7 

8if TYPE_CHECKING: 

9 from . import DatabaseReader 

10 

11 

12def setup_dialoop( 

13 self: "DatabaseReader", 

14 pulseNo: int, 

15 settings: dict[str, typing.Any], 

16) -> Dialoop: 

17 """ 

18 This method initialises the Rust `Dialoop` class. 

19 

20 :param pulseNo: Pulse number, used to read from the database 

21 :param settings: Dictionary containing the JSON settings read from the `settings` directory 

22 

23 **This method is specific to ST40's ASTRA stored on MDSplus.** 

24 

25 See `python/gsfit/database_readers/interface.py` for more details on how a new database_reader should be implemented. 

26 """ 

27 

28 # Initialise the Dialoop Rust class 

29 dialoop = Dialoop() 

30 

31 # TODO: implement the method 

32 

33 return dialoop