X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/predictops.git/blobdiff_plain/6a7cf0e5dd962e7da028cb0d82c6682ac87b0540..dc10b29095dc3e2d74b82b208fd4f4677e6a9c30:/lib/source/meteofrance.py?ds=sidebyside diff --git a/lib/source/meteofrance.py b/lib/source/meteofrance.py index 3f1c3eb..cc2eff1 100644 --- a/lib/source/meteofrance.py +++ b/lib/source/meteofrance.py @@ -175,6 +175,14 @@ class MeteoFrance: @property def dated_features(self): ''' + If the attribute dated_features is None, then we create it: a dictionary + with datestamps as keys, and {features: values} as values. + - considered features are the ones from meteofrance_features.csv, found + in config/features/meteofrance directory + - only the closest meteo stations are considered + + Returns: + dict: the dictionary of features per datestamp ''' if self._dated_features == None: csv_file = Path.cwd() / 'config' / 'features' / 'meteofrance' / 'meteofrance_features.csv'