from shutil import rmtree
import os
+import pytz
from .learn.learning import Learning
from .learn.preprocessing import Preprocessing
from .source.ephemeris import Ephemeris
from .source.holidays import Holidays
-from .source.ramadan import Ramadan
from .source.meteofrance import MeteoFrance
+from .source.ramadan import Ramadan
+from .source.sentinelles import Sentinelles
from .target.target import Target
fileConfig((Path.cwd() / 'config') / 'logging.cfg')
self._config_text += f"{'='*10} {os.path.basename(config_file)} {'='*10}\n\n"
self._config_text += f.read() + '\n\n'
- ephemerides = Ephemeris(config_file=config_file)
+ ephemerides = Ephemeris(config_file=config_file, start=self._start, end=self._end)
- ephemerides.start = self._start
- ephemerides.end = self._end
+ # ephemerides.start = self._start
+ # ephemerides.end = self._end
dated_features = ephemerides.dated_features
for date in dated_features:
def add_preprocessing(self):
self._preproc = Preprocessing(config_file=self._config,
+ start=self._start, end=self._end,
+ timestep=self._timestep,
dict_features=self.X,
dict_target=self.y)