1 from predictops.engine import Engine
3 from logging import getLogger
4 from logging.config import fileConfig
5 from pathlib import Path
8 fileConfig((Path.cwd() / 'config') / 'logging.cfg')
11 if __name__ == '__main__':
13 config = (Path.cwd() / 'config') / 'learn.cfg'
14 with Engine(config_file = config) as e:
20 '''target = toarea(stream_file = Path.cwd() / 'data' / 'targets' / 'sdis25' / 'interventions.csv')
22 depts = gpd.read_file( Path.cwd() / 'data' / 'targets' / 'departments' / "departements-20180101.shp")
23 Doubs = depts.loc[depts['nom'] == 'Doubs'].iloc[0]
25 ToArea(area=Doubs.geometry,
26 csv_file = Path.cwd() / 'data' / 'targets' / 'sdis25' / 'interventions.csv')