X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/predictops.git/blobdiff_plain/f04d85cc8028a2721d7d5e8ec866ff8022797bb5..f5357178353432c5431fc0fd875b9928a326e4c7:/main.py?ds=sidebyside diff --git a/main.py b/main.py index 969054c..d1d7f9c 100644 --- a/main.py +++ b/main.py @@ -5,7 +5,6 @@ from logging import getLogger from logging.config import fileConfig from pathlib import Path -import geopandas as gpd fileConfig((Path.cwd() / 'config') / 'logging.cfg') logger = getLogger() @@ -23,14 +22,11 @@ if __name__ == '__main__': print(process.dataframe.head(n=20)) print(process.dataframe.tail(n=20)) - #target = toarea(stream_file = Path.cwd() / 'data' / 'targets' / 'sdis25' / 'interventions.csv') - - - exit() + '''target = toarea(stream_file = Path.cwd() / 'data' / 'targets' / 'sdis25' / 'interventions.csv') depts = gpd.read_file( Path.cwd() / 'data' / 'targets' / 'departments' / "departements-20180101.shp") Doubs = depts.loc[depts['nom'] == 'Doubs'].iloc[0] ToArea(area=Doubs.geometry, csv_file = Path.cwd() / 'data' / 'targets' / 'sdis25' / 'interventions.csv') - + '''