@@ -52,8 +52,8 @@ class Experiment:
52
52
- growth (:class:`str`): `incremental` or `cumulative`
53
53
- offset (:class:`float`): recurrence of forecast creation.
54
54
55
- For further details, see :func:`~floatcsep.utils.timewindows_ti `
56
- and :func:`~floatcsep.utils.timewindows_td `
55
+ For further details, see :func:`~floatcsep.utils.time_windows_ti `
56
+ and :func:`~floatcsep.utils.time_windows_td `
57
57
58
58
region_config (dict): Contains all the spatial and magnitude
59
59
specifications. It must contain the following keys:
@@ -143,7 +143,7 @@ def __init__(
143
143
log .info (f"Setting up experiment { self .name } :" )
144
144
log .info (f"\t Start: { self .start_date } " )
145
145
log .info (f"\t End: { self .end_date } " )
146
- log .info (f"\t Time windows: { len (self .timewindows )} " )
146
+ log .info (f"\t Time windows: { len (self .time_windows )} " )
147
147
log .info (f"\t Region: { self .region .name if self .region else None } " )
148
148
log .info (
149
149
f"\t Magnitude range: [{ numpy .min (self .magnitudes )} ,"
@@ -295,7 +295,7 @@ def stage_models(self) -> None:
295
295
"""
296
296
log .info ("Staging models" )
297
297
for i in self .models :
298
- i .stage (self .timewindows )
298
+ i .stage (self .time_windows )
299
299
self .registry .add_forecast_registry (i )
300
300
301
301
def set_tests (self , test_config : Union [str , Dict , List ]) -> list :
@@ -376,17 +376,17 @@ def set_tasks(self) -> None:
376
376
"""
377
377
378
378
# Set the file path structure
379
- self .registry .build_tree (self .timewindows , self .models , self .tests )
379
+ self .registry .build_tree (self .time_windows , self .models , self .tests )
380
380
381
381
log .debug ("Pre-run forecast summary" )
382
- self .registry .log_forecast_trees (self .timewindows )
382
+ self .registry .log_forecast_trees (self .time_windows )
383
383
log .debug ("Pre-run result summary" )
384
384
self .registry .log_results_tree ()
385
385
386
386
log .info ("Setting up experiment's tasks" )
387
387
388
388
# Get the time windows strings
389
- tw_strings = timewindow2str (self .timewindows )
389
+ tw_strings = timewindow2str (self .time_windows )
390
390
391
391
# Prepare the testing catalogs
392
392
task_graph = TaskGraph ()
@@ -481,7 +481,7 @@ def set_tasks(self) -> None:
481
481
)
482
482
# Set up the Sequential_Comparative Scores
483
483
elif test_k .type == "sequential_comparative" :
484
- tw_strs = timewindow2str (self .timewindows )
484
+ tw_strs = timewindow2str (self .time_windows )
485
485
for model_j in self .models :
486
486
task_k = Task (
487
487
instance = test_k ,
@@ -504,7 +504,7 @@ def set_tasks(self) -> None:
504
504
)
505
505
# Set up the Batch comparative Scores
506
506
elif test_k .type == "batch" :
507
- time_str = timewindow2str (self .timewindows [- 1 ])
507
+ time_str = timewindow2str (self .time_windows [- 1 ])
508
508
for model_j in self .models :
509
509
task_k = Task (
510
510
instance = test_k ,
@@ -540,7 +540,7 @@ def run(self) -> None:
540
540
self .task_graph .run ()
541
541
log .info ("Calculation completed" )
542
542
log .debug ("Post-run forecast registry" )
543
- self .registry .log_forecast_trees (self .timewindows )
543
+ self .registry .log_forecast_trees (self .time_windows )
544
544
log .debug ("Post-run result summary" )
545
545
self .registry .log_results_tree ()
546
546
@@ -604,7 +604,7 @@ def as_dict(self, extra: Sequence = (), extended=False) -> dict:
604
604
"time_config" : {
605
605
i : j
606
606
for i , j in self .time_config .items ()
607
- if (i not in ("timewindows " ,) or extended )
607
+ if (i not in ("time_windows " ,) or extended )
608
608
},
609
609
"region_config" : {
610
610
i : j
@@ -731,7 +731,7 @@ def test_stat(test_orig, test_repr):
731
731
732
732
def get_results (self ):
733
733
734
- win_orig = timewindow2str (self .original .timewindows )
734
+ win_orig = timewindow2str (self .original .time_windows )
735
735
736
736
tests_orig = self .original .tests
737
737
@@ -787,7 +787,7 @@ def get_hash(filename):
787
787
788
788
def get_filecomp (self ):
789
789
790
- win_orig = timewindow2str (self .original .timewindows )
790
+ win_orig = timewindow2str (self .original .time_windows )
791
791
792
792
tests_orig = self .original .tests
793
793
0 commit comments