@@ -88,22 +88,6 @@ class Experiment:
88
88
intervals=1, region='csep-italy', ...)``
89
89
"""
90
90
91
- """
92
- Data management
93
-
94
- Model:
95
- - FILE - read from file, scale in runtime
96
- - drop to db, scale from function in runtime
97
- - CODE - run, read from file
98
- - run, store in db, read from db
99
-
100
- TEST:
101
- - use forecast from runtime
102
- - read forecast from file (TD)
103
- (does not make sense for TI (too much FS space) unless is already
104
- dropped to DB)
105
- """
106
-
107
91
def __init__ (
108
92
self ,
109
93
name : str = None ,
@@ -155,7 +139,7 @@ def __init__(
155
139
log .info (f"Logging at { self .registry .logger } " )
156
140
add_fhandler (self .registry .logger )
157
141
158
- log .debug (f "-------- BEGIN OF RUN --------" )
142
+ log .debug ("-------- BEGIN OF RUN --------" )
159
143
log .info (f"Setting up experiment { self .name } :" )
160
144
log .info (f"\t Start: { self .start_date } " )
161
145
log .info (f"\t End: { self .end_date } " )
@@ -554,7 +538,7 @@ def run(self) -> None:
554
538
numpy .random .seed (self .seed )
555
539
556
540
self .task_graph .run ()
557
- log .info (f "Calculation completed" )
541
+ log .info ("Calculation completed" )
558
542
log .debug ("Post-run forecast registry" )
559
543
self .registry .log_forecast_trees (self .timewindows )
560
544
log .debug ("Post-run result summary" )
@@ -687,8 +671,6 @@ def from_yml(cls, config_yml: str, repr_dir=None, **kwargs):
687
671
# experiment configuration file
688
672
_dict = yaml .load (yml , NoAliasLoader )
689
673
_dir_yml = dirname (config_yml )
690
- # uses yml path and append if a rel/abs path is given in config.
691
- _path = _dict .get ("path" , "" )
692
674
693
675
# Only ABSOLUTE PATH
694
676
_dict ["path" ] = abspath (join (_dir_yml , _dict .get ("path" , "" )))
@@ -750,13 +732,10 @@ def test_stat(test_orig, test_repr):
750
732
def get_results (self ):
751
733
752
734
win_orig = timewindow2str (self .original .timewindows )
753
- win_repr = timewindow2str (self .reproduced .timewindows )
754
735
755
736
tests_orig = self .original .tests
756
- tests_repr = self .reproduced .tests
757
737
758
738
models_orig = [i .name for i in self .original .models ]
759
- models_repr = [i .name for i in self .reproduced .models ]
760
739
761
740
results = dict .fromkeys ([i .name for i in tests_orig ])
762
741
@@ -809,13 +788,10 @@ def get_hash(filename):
809
788
def get_filecomp (self ):
810
789
811
790
win_orig = timewindow2str (self .original .timewindows )
812
- win_repr = timewindow2str (self .reproduced .timewindows )
813
791
814
792
tests_orig = self .original .tests
815
- tests_repr = self .reproduced .tests
816
793
817
794
models_orig = [i .name for i in self .original .models ]
818
- models_repr = [i .name for i in self .reproduced .models ]
819
795
820
796
results = dict .fromkeys ([i .name for i in tests_orig ])
821
797
0 commit comments