Coverage for C: \ Users \ peaco \ OneDrive \ Documents \ GitHub \ mt_metadata \ mt_metadata \ transfer_functions \ io \ jfiles \ metadata \ birrp_angles.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.13.1, created at 2026-01-10 00:11 -0800

1# ===================================================== 

2# Imports 

3# ===================================================== 

4from typing import Annotated 

5 

6from pydantic import Field 

7 

8from mt_metadata.base import MetadataBase 

9 

10 

11# ===================================================== 

12class BirrpAngles(MetadataBase): 

13 theta1: Annotated[ 

14 float, 

15 Field( 

16 default=0.0, 

17 description="rotation angle for block x", 

18 alias=None, 

19 json_schema_extra={ 

20 "units": "degrees", 

21 "required": True, 

22 "examples": ["0"], 

23 }, 

24 ), 

25 ] 

26 

27 theta2: Annotated[ 

28 float, 

29 Field( 

30 default=0.0, 

31 description="rotation angle for block y", 

32 alias=None, 

33 json_schema_extra={ 

34 "units": "degrees", 

35 "required": True, 

36 "examples": ["90"], 

37 }, 

38 ), 

39 ] 

40 

41 phi: Annotated[ 

42 float, 

43 Field( 

44 default=0.0, 

45 description="rotation angle for block", 

46 alias=None, 

47 json_schema_extra={ 

48 "units": "degrees", 

49 "required": True, 

50 "examples": ["0"], 

51 }, 

52 ), 

53 ]