@@ -88,22 +88,6 @@ class Experiment:
8888 intervals=1, region='csep-italy', ...)``
8989 """
9090
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-
10791 def __init__ (
10892 self ,
10993 name : str = None ,
@@ -155,7 +139,7 @@ def __init__(
155139 log .info (f"Logging at { self .registry .logger } " )
156140 add_fhandler (self .registry .logger )
157141
158- log .debug (f "-------- BEGIN OF RUN --------" )
142+ log .debug ("-------- BEGIN OF RUN --------" )
159143 log .info (f"Setting up experiment { self .name } :" )
160144 log .info (f"\t Start: { self .start_date } " )
161145 log .info (f"\t End: { self .end_date } " )
@@ -554,7 +538,7 @@ def run(self) -> None:
554538 numpy .random .seed (self .seed )
555539
556540 self .task_graph .run ()
557- log .info (f "Calculation completed" )
541+ log .info ("Calculation completed" )
558542 log .debug ("Post-run forecast registry" )
559543 self .registry .log_forecast_trees (self .timewindows )
560544 log .debug ("Post-run result summary" )
@@ -687,8 +671,6 @@ def from_yml(cls, config_yml: str, repr_dir=None, **kwargs):
687671 # experiment configuration file
688672 _dict = yaml .load (yml , NoAliasLoader )
689673 _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" , "" )
692674
693675 # Only ABSOLUTE PATH
694676 _dict ["path" ] = abspath (join (_dir_yml , _dict .get ("path" , "" )))
@@ -750,13 +732,10 @@ def test_stat(test_orig, test_repr):
750732 def get_results (self ):
751733
752734 win_orig = timewindow2str (self .original .timewindows )
753- win_repr = timewindow2str (self .reproduced .timewindows )
754735
755736 tests_orig = self .original .tests
756- tests_repr = self .reproduced .tests
757737
758738 models_orig = [i .name for i in self .original .models ]
759- models_repr = [i .name for i in self .reproduced .models ]
760739
761740 results = dict .fromkeys ([i .name for i in tests_orig ])
762741
@@ -809,13 +788,10 @@ def get_hash(filename):
809788 def get_filecomp (self ):
810789
811790 win_orig = timewindow2str (self .original .timewindows )
812- win_repr = timewindow2str (self .reproduced .timewindows )
813791
814792 tests_orig = self .original .tests
815- tests_repr = self .reproduced .tests
816793
817794 models_orig = [i .name for i in self .original .models ]
818- models_repr = [i .name for i in self .reproduced .models ]
819795
820796 results = dict .fromkeys ([i .name for i in tests_orig ])
821797
0 commit comments