@@ -95,13 +95,13 @@ class CalibratorConfig(BaseModel):
9595 description = "Rolling time window in minutes for MAPE calculation" ,
9696 gt = 0 ,
9797 )
98-
98+
9999 # Legacy fields for backwards compatibility (mapped to new fields)
100100 asym_util_min : float | None = Field (None , exclude = True )
101101 asym_util_max : float | None = Field (None , exclude = True )
102102 asym_util_points : int | None = Field (None , exclude = True )
103-
104- @model_validator (mode = ' after' )
103+
104+ @model_validator (mode = " after" )
105105 def handle_legacy_fields (self ):
106106 """Map legacy field names to new ones if present."""
107107 if self .asym_util_min is not None :
@@ -159,7 +159,9 @@ class WorkloadContext(BaseModel):
159159
160160 name : str = Field (default = "" , description = "Workload name (e.g., 'SURF')" )
161161 base_path : Path = Field (default = Path ("/app/workload" ), description = "Base workload directory" )
162- workload_dir : Path | None = Field (None , description = "Direct path to workload directory (overrides base_path/name)" )
162+ workload_dir : Path | None = Field (
163+ None , description = "Direct path to workload directory (overrides base_path/name)"
164+ )
163165 metadata : WorkloadMetadata | None = Field (None , description = "Workload metadata" )
164166
165167 def __init__ (self , ** data ):
0 commit comments