11from decimal import Decimal
22from typing import Literal , Any
33
4- from pydantic import computed_field , Field , model_validator
4+ from pydantic import computed_field , Field , model_validator , AliasChoices
55
66from sgf_parser .models import MethodType , Method , MethodData
77from sgf_parser .models .types import SoundingClass , StopCode , CommentCode
@@ -28,7 +28,9 @@ def __init__(self, **kwargs):
2828 penetration_force : Decimal | None = Field (None , alias = "A" , description = "Penetration force (kN)" )
2929 penetration_rate : Decimal | None = Field (None , alias = "B" , description = "Penetration rate (mm/s)" )
3030 engine_pressure : Decimal | None = Field (None , alias = "P" , description = "Engine pressure (MPa)" )
31- hammering_pressure : Decimal | None = Field (None , alias = "AZ" , description = "Hammering pressure (MPa)" )
31+ hammering_pressure : Decimal | None = Field (
32+ None , validation_alias = AliasChoices ("AZ" , "SP" ), description = "Hammering pressure (MPa)"
33+ )
3234 rotation_rate : Decimal | None = Field (None , alias = "R" , description = "Rotation rate (rpm)" )
3335 flushing_pressure : Decimal | None = Field (None , alias = "I" , description = "Flushing pressure (MPa)" )
3436 flushing_flow : Decimal | None = Field (None , alias = "J" , description = "Flushing flow (l/min)" )
0 commit comments