Coverage for python/gsfit/database_writers/interface.py: 100%

4 statements  

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

1from typing import TYPE_CHECKING 

2from typing import Protocol 

3 

4if TYPE_CHECKING: 

5 from ..gsfit import Gsfit 

6 

7 

8class DatabaseWriterProtocol(Protocol): 

9 def map_results_to_database(self, gsfit_controller: "Gsfit") -> None: 

10 """ 

11 Map the results to MDSplus structure. 

12 self.results is a NestedDict type which has a 1:1 mapping to the MDSplus tree. 

13 """ 

14 ...