@@ -287,6 +287,7 @@ class Wind(DataSourceMixin, TimeResolutionMixin, XYDimensionalNames, DropoutMixi
287
287
288
288
@field_validator ("forecast_minutes" )
289
289
def forecast_minutes_divide_by_time_resolution (cls , v : int , info : ValidationInfo ) -> int :
290
+ """Check forecast length requested will give stable number of timesteps"""
290
291
if v % info .data ["time_resolution_minutes" ] != 0 :
291
292
message = "Forecast duration must be divisible by time resolution"
292
293
logger .error (message )
@@ -295,6 +296,7 @@ def forecast_minutes_divide_by_time_resolution(cls, v: int, info: ValidationInfo
295
296
296
297
@field_validator ("history_minutes" )
297
298
def history_minutes_divide_by_time_resolution (cls , v : int , info : ValidationInfo ) -> int :
299
+ """Check history length requested will give stable number of timesteps"""
298
300
if v % info .data ["time_resolution_minutes" ] != 0 :
299
301
message = "History duration must be divisible by time resolution"
300
302
logger .error (message )
@@ -402,6 +404,7 @@ def model_validation(cls, v):
402
404
403
405
@field_validator ("forecast_minutes" )
404
406
def forecast_minutes_divide_by_time_resolution (cls , v : int , info : ValidationInfo ) -> int :
407
+ """Check forecast length requested will give stable number of timesteps"""
405
408
if v % info .data ["time_resolution_minutes" ] != 0 :
406
409
message = "Forecast duration must be divisible by time resolution"
407
410
logger .error (message )
@@ -410,6 +413,7 @@ def forecast_minutes_divide_by_time_resolution(cls, v: int, info: ValidationInfo
410
413
411
414
@field_validator ("history_minutes" )
412
415
def history_minutes_divide_by_time_resolution (cls , v : int , info : ValidationInfo ) -> int :
416
+ """Check history length requested will give stable number of timesteps"""
413
417
if v % info .data ["time_resolution_minutes" ] != 0 :
414
418
message = "History duration must be divisible by time resolution"
415
419
logger .error (message )
@@ -641,6 +645,7 @@ def validate_nwp_provider(cls, v: str) -> str:
641
645
642
646
@field_validator ("forecast_minutes" )
643
647
def forecast_minutes_divide_by_time_resolution (cls , v : int , info : ValidationInfo ) -> int :
648
+ """Check forecast length requested will give stable number of timesteps"""
644
649
if v % info .data ["time_resolution_minutes" ] != 0 :
645
650
message = "Forecast duration must be divisible by time resolution"
646
651
logger .error (message )
@@ -649,6 +654,7 @@ def forecast_minutes_divide_by_time_resolution(cls, v: int, info: ValidationInfo
649
654
650
655
@field_validator ("history_minutes" )
651
656
def history_minutes_divide_by_time_resolution (cls , v : int , info : ValidationInfo ) -> int :
657
+ """Check history length requested will give stable number of timesteps"""
652
658
if v % info .data ["time_resolution_minutes" ] != 0 :
653
659
message = "History duration must be divisible by time resolution"
654
660
logger .error (message )
0 commit comments