From: Christophe Guyeux Date: Sun, 16 Feb 2020 10:58:40 +0000 (+0100) Subject: starting to fill README.md, and packages update X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/predictops.git/commitdiff_plain/eb6d0d929146ad8df7760eb586653ee67a2f6fed?hp=66b4627c14e9f89a2e5ab73bbf48819f8f3a1455 starting to fill README.md, and packages update --- diff --git a/README.md b/README.md index 660b7ef..cd18684 100644 --- a/README.md +++ b/README.md @@ -1,28 +1,43 @@ -Creer un environnement : -pip install virtualenv -python -m venv ~/.venvs/predictops +Configuration +============= + +Initialisation de l'environnement de travail +-------------------------------------------- + +- Creer un environnement : + +`pip install virtualenv` + +`python -m venv ~/.venvs/predictops` activer l'environnement : -source ~/.venvs/predictops/bin/activate -installer un package : -pip install celery -pip freeze > requirements.txt +`source ~/.venvs/predictops/bin/activate` -Lancer -celery -A test_celery worker --loglevel=info -puis -python -m test_celery.run_tasks +Gestion des packages +-------------------- + +- Mettre à jour la liste des packages + +`pip install -r requirements.txt` -Pour nettoyer la bdd : -engine = ExtomeEngine(clean = False) -> dans le main --> Remplir le répertoire data à partir d'archive -dans pgModeler : Faire export +- installer un package : +`pip install celery` + +`pip freeze > requirements.txt` + + +Planification des tâches +------------------------ + +- Lancer le scheduling (à compléter) + +`celery -A test_celery worker --loglevel=info` + +puis -$ psql extome -\dt -> describe table -select * from "PARAMETER"; +`python -m test_celery.run_tasks` diff --git a/requirements.txt b/requirements.txt index 3fdb9fb..2053469 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,6 +12,7 @@ pandas==1.0.1 pyproj==2.4.2.post1 python-dateutil==2.8.1 pytz==2019.3 +scipy==1.4.1 Shapely==1.7.0 six==1.14.0 xlrd==1.2.0