1# =====================================================
2# Imports
3# =====================================================
4from enum import Enum
5from typing import Annotated
6
7from pydantic import Field
8
9from mt_metadata.base import MetadataBase
10from mt_metadata.common.enumerations import YesNoEnum
11
12
13# =====================================================
14class SmoothEnum(str, Enum):
15 robust = "robust"
16 normal = "normal"
17 null = "None"
18 minimal = "minimal"
19
20
21class PhaseSlope(MetadataBase):
22 smooth: Annotated[
23 SmoothEnum,
24 Field(
25 default=SmoothEnum.null,
26 description="Type of smoothing for phase slope algorithm",
27 alias=None,
28 json_schema_extra={
29 "units": None,
30 "required": True,
31 "examples": ["robust"],
32 },
33 ),
34 ]
35
36 to_z_mag: Annotated[
37 YesNoEnum,
38 Field(
39 default=YesNoEnum.no,
40 description="Was hz used for smoothing for phase slope algorithm",
41 alias=None,
42 json_schema_extra={
43 "units": None,
44 "required": True,
45 "examples": ["no"],
46 },
47 ),
48 ]