X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/predictops.git/blobdiff_plain/1eeee0f8e0d074a2b4453ef5e9f880189d89a64f..2c5695839a5064f584ffeaba557020ab3270b7b9:/predictops/source/meteofrance.py?ds=inline diff --git a/predictops/source/meteofrance.py b/predictops/source/meteofrance.py index afe18ad..3d8ae88 100644 --- a/predictops/source/meteofrance.py +++ b/predictops/source/meteofrance.py @@ -1,3 +1,5 @@ +from .source import Source + from configparser import ConfigParser from csv import DictReader from datetime import datetime @@ -19,7 +21,7 @@ logger = getLogger() CSV_FILE = Path.cwd() / 'config' / 'features' / 'meteofrance_features.csv' -class MeteoFrance: +class MeteoFrance(Source): _latitude = None _longitude = None @@ -50,6 +52,9 @@ class MeteoFrance: to their names in meteofrance_features.csv (cf. config directory) ''' + # Check for the integrity of feature names + super(Source, self).__init__() + self._config = ConfigParser() self._config.read(config_file)