From b1da2c3acf146b8db90a0ea20d29b0dad67e5211 Mon Sep 17 00:00:00 2001 From: Benjamin Bertrand Date: Mon, 17 Apr 2017 15:10:14 +0300 Subject: [PATCH] Remove all notes_tools occurency --- repytex/generate_reports_main.py | 1 - repytex/reports/eval_reports.py | 2 +- repytex/reports/produce_compile.py | 2 +- repytex/reports/reports_tools.py | 2 +- repytex/reports/term_reports.py | 2 +- repytex/tools/evaluation.py | 2 +- repytex/tools/term.py | 2 +- repytex/tools/test/test_df_marks_manip.py | 2 +- repytex/tools/test/test_extract.py | 2 +- 9 files changed, 8 insertions(+), 9 deletions(-) diff --git a/repytex/generate_reports_main.py b/repytex/generate_reports_main.py index 8b61e0b..8243818 100644 --- a/repytex/generate_reports_main.py +++ b/repytex/generate_reports_main.py @@ -10,7 +10,6 @@ steam_handler.setFormatter(formatter) # création de l'objet logger qui va nous servir à écrire dans les logs logger = logging.getLogger() -#logger = logging.getLogger("notes_tools") # on met le niveau du logger à DEBUG, comme ça il écrit tout logger.setLevel(logging.INFO) logger.addHandler(steam_handler) diff --git a/repytex/reports/eval_reports.py b/repytex/reports/eval_reports.py index 4301de2..d62fe06 100755 --- a/repytex/reports/eval_reports.py +++ b/repytex/reports/eval_reports.py @@ -5,7 +5,7 @@ Evaluation reports """ -from notes_tools.tools import ( +from repytex.tools import ( extract_flat_marks, get_class_ws, digest_flat_df, diff --git a/repytex/reports/produce_compile.py b/repytex/reports/produce_compile.py index 47905d3..b248b79 100644 --- a/repytex/reports/produce_compile.py +++ b/repytex/reports/produce_compile.py @@ -17,7 +17,7 @@ from .filters import includegraphics pytex.add_filter("includegraphics", includegraphics) # texenv.filters['includegraphics'] = includegraphics -pytex.add_pkg_loader("notes_tools.reports", "templates") +pytex.add_pkg_loader("repytex.reports", "templates") def produce_compile(template, datas, target, force=1): diff --git a/repytex/reports/reports_tools.py b/repytex/reports/reports_tools.py index 3a236b2..d459ecf 100755 --- a/repytex/reports/reports_tools.py +++ b/repytex/reports/reports_tools.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # encoding: utf-8 -from notes_tools.tools import extract_flat_marks, get_class_ws, list_classes +from repytex.tools import extract_flat_marks, get_class_ws, list_classes import pandas as pd import numpy as np import xlrd diff --git a/repytex/reports/term_reports.py b/repytex/reports/term_reports.py index 64d5649..8b18f61 100755 --- a/repytex/reports/term_reports.py +++ b/repytex/reports/term_reports.py @@ -4,7 +4,7 @@ """ Making term reports """ import logging -from notes_tools.tools import ( +from repytex.tools import ( extract_flat_marks, get_class_ws, digest_flat_df, diff --git a/repytex/tools/evaluation.py b/repytex/tools/evaluation.py index d109c7d..1408832 100644 --- a/repytex/tools/evaluation.py +++ b/repytex/tools/evaluation.py @@ -3,7 +3,7 @@ import pandas as pd import numpy as np -from notes_tools.tools.marks_plottings import (pie_pivot_table, +from repytex.tools.marks_plottings import (pie_pivot_table, parallel_on, radar_on, hist_boxplot diff --git a/repytex/tools/term.py b/repytex/tools/term.py index cafa6ae..fc650ce 100644 --- a/repytex/tools/term.py +++ b/repytex/tools/term.py @@ -3,7 +3,7 @@ import pandas as pd import numpy as np -from notes_tools.tools.marks_plottings import (pie_pivot_table, +from repytex.tools.marks_plottings import (pie_pivot_table, parallel_on, radar_on, ) diff --git a/repytex/tools/test/test_df_marks_manip.py b/repytex/tools/test/test_df_marks_manip.py index fa78634..469df99 100644 --- a/repytex/tools/test/test_df_marks_manip.py +++ b/repytex/tools/test/test_df_marks_manip.py @@ -2,7 +2,7 @@ # encoding: utf-8 -from notes_tools.tools import df_marks_manip +from repytex.tools import df_marks_manip import pandas diff --git a/repytex/tools/test/test_extract.py b/repytex/tools/test/test_extract.py index f488ca8..24fe250 100644 --- a/repytex/tools/test/test_extract.py +++ b/repytex/tools/test/test_extract.py @@ -2,7 +2,7 @@ # encoding: utf-8 -from notes_tools.tools import extract +from repytex.tools import extract import pandas import pytest