diff --git a/Notes/DB vers xlsx.ipynb b/Notes/DB vers xlsx.ipynb
index 009ef4b..e2376f0 100644
--- a/Notes/DB vers xlsx.ipynb
+++ b/Notes/DB vers xlsx.ipynb
@@ -2,8 +2,10 @@
"cells": [
{
"cell_type": "code",
- "execution_count": 1,
- "metadata": {},
+ "execution_count": 6,
+ "metadata": {
+ "collapsed": true
+ },
"outputs": [],
"source": [
"import xlsxwriter"
@@ -11,17 +13,20 @@
},
{
"cell_type": "code",
- "execution_count": 2,
- "metadata": {},
+ "execution_count": 7,
+ "metadata": {
+ "collapsed": true
+ },
"outputs": [],
"source": [
"from repytex.tools.evaluation import Evaluation\n",
+ "from repytex.tools.sqlite_getters import all_ev_description\n",
"import sqlite3"
]
},
{
"cell_type": "code",
- "execution_count": 3,
+ "execution_count": 8,
"metadata": {
"collapsed": true
},
@@ -32,25 +37,235 @@
},
{
"cell_type": "code",
- "execution_count": 4,
+ "execution_count": 9,
"metadata": {},
- "outputs": [],
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "
\n",
+ "\n",
+ "
\n",
+ " \n",
+ " \n",
+ " | \n",
+ " id | \n",
+ " name | \n",
+ " term | \n",
+ " t_id | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " 0 | \n",
+ " 1 | \n",
+ " DS1 mise en jambe | \n",
+ " 1 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " 1 | \n",
+ " 2 | \n",
+ " DS1 | \n",
+ " 1 | \n",
+ " 2 | \n",
+ "
\n",
+ " \n",
+ " 2 | \n",
+ " 3 | \n",
+ " DS1 | \n",
+ " 1 | \n",
+ " 3 | \n",
+ "
\n",
+ " \n",
+ " 3 | \n",
+ " 4 | \n",
+ " DS2 | \n",
+ " 1 | \n",
+ " 2 | \n",
+ "
\n",
+ " \n",
+ " 4 | \n",
+ " 5 | \n",
+ " DS2 | \n",
+ " 1 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " 5 | \n",
+ " 6 | \n",
+ " DS2 | \n",
+ " 1 | \n",
+ " 3 | \n",
+ "
\n",
+ " \n",
+ " 6 | \n",
+ " 7 | \n",
+ " DS3 | \n",
+ " 1 | \n",
+ " 3 | \n",
+ "
\n",
+ " \n",
+ " 7 | \n",
+ " 8 | \n",
+ " Pyramide de pièces | \n",
+ " 1 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " 8 | \n",
+ " 9 | \n",
+ " DS3 | \n",
+ " 1 | \n",
+ " 2 | \n",
+ "
\n",
+ " \n",
+ " 9 | \n",
+ " 10 | \n",
+ " DS3 | \n",
+ " 1 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " 10 | \n",
+ " 11 | \n",
+ " DS4 | \n",
+ " 2 | \n",
+ " 3 | \n",
+ "
\n",
+ " \n",
+ " 11 | \n",
+ " 13 | \n",
+ " DS5 | \n",
+ " 2 | \n",
+ " 3 | \n",
+ "
\n",
+ " \n",
+ " 12 | \n",
+ " 14 | \n",
+ " DM noel | \n",
+ " 2 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " 13 | \n",
+ " 15 | \n",
+ " DM noel | \n",
+ " 2 | \n",
+ " 2 | \n",
+ "
\n",
+ " \n",
+ " 14 | \n",
+ " 16 | \n",
+ " DS4 | \n",
+ " 2 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " 15 | \n",
+ " 17 | \n",
+ " DS4 | \n",
+ " 2 | \n",
+ " 2 | \n",
+ "
\n",
+ " \n",
+ " 16 | \n",
+ " 18 | \n",
+ " DS6 | \n",
+ " 2 | \n",
+ " 3 | \n",
+ "
\n",
+ " \n",
+ " 17 | \n",
+ " 19 | \n",
+ " CM1 | \n",
+ " 2 | \n",
+ " 2 | \n",
+ "
\n",
+ " \n",
+ " 18 | \n",
+ " 20 | \n",
+ " DNB blanc1 | \n",
+ " 2 | \n",
+ " 2 | \n",
+ "
\n",
+ " \n",
+ " 19 | \n",
+ " 21 | \n",
+ " DNB blanc1 | \n",
+ " 2 | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
"
+ ],
+ "text/plain": [
+ " id name term t_id\n",
+ "0 1 DS1 mise en jambe 1 1\n",
+ "1 2 DS1 1 2\n",
+ "2 3 DS1 1 3\n",
+ "3 4 DS2 1 2\n",
+ "4 5 DS2 1 1\n",
+ "5 6 DS2 1 3\n",
+ "6 7 DS3 1 3\n",
+ "7 8 Pyramide de pièces 1 1\n",
+ "8 9 DS3 1 2\n",
+ "9 10 DS3 1 1\n",
+ "10 11 DS4 2 3\n",
+ "11 13 DS5 2 3\n",
+ "12 14 DM noel 2 1\n",
+ "13 15 DM noel 2 2\n",
+ "14 16 DS4 2 1\n",
+ "15 17 DS4 2 2\n",
+ "16 18 DS6 2 3\n",
+ "17 19 CM1 2 2\n",
+ "18 20 DNB blanc1 2 2\n",
+ "19 21 DNB blanc1 2 1"
+ ]
+ },
+ "execution_count": 9,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
"source": [
- "ev = Evaluation.from_sqlite(16, conn)"
+ "all_ev_description(conn)"
]
},
{
"cell_type": "code",
- "execution_count": 5,
+ "execution_count": 10,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "ev = Evaluation.from_sqlite(21, conn)"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 11,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
- "'DS4'"
+ "'DNB blanc1'"
]
},
- "execution_count": 5,
+ "execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
@@ -61,7 +276,7 @@
},
{
"cell_type": "code",
- "execution_count": 6,
+ "execution_count": 12,
"metadata": {},
"outputs": [
{
@@ -95,50 +310,58 @@
" \n",
" \n",
" 0 | \n",
- " 43 | \n",
- " 1 QCM | \n",
- " 16 | \n",
- " 2018-01-16 00:00:00.000000 | \n",
+ " 64 | \n",
+ " 1 - QCM | \n",
+ " 21 | \n",
+ " 2018-02-07 00:00:00.000000 | \n",
" | \n",
"
\n",
" \n",
" 1 | \n",
- " 44 | \n",
- " 2 Bien assis? | \n",
- " 16 | \n",
- " 2018-01-16 00:00:00.000000 | \n",
+ " 65 | \n",
+ " 2 - Boite de chocolat | \n",
+ " 21 | \n",
+ " 2018-02-07 00:00:00.000000 | \n",
" | \n",
"
\n",
" \n",
" 2 | \n",
- " 45 | \n",
- " 3 L'urne | \n",
- " 16 | \n",
- " 2018-01-16 00:00:00.000000 | \n",
+ " 66 | \n",
+ " 3 - Scratch | \n",
+ " 21 | \n",
+ " 2018-02-07 00:00:00.000000 | \n",
" | \n",
"
\n",
" \n",
" 3 | \n",
- " 46 | \n",
- " 4 Programme de calculs | \n",
- " 16 | \n",
- " 2018-01-16 00:00:00.000000 | \n",
+ " 67 | \n",
+ " 4 - Programme de calcul | \n",
+ " 21 | \n",
+ " 2018-02-07 00:00:00.000000 | \n",
" | \n",
"
\n",
" \n",
" 4 | \n",
- " 47 | \n",
- " 5 Roule cycliste | \n",
- " 16 | \n",
- " 2018-01-16 00:00:00.000000 | \n",
+ " 68 | \n",
+ " 5 - Macaron | \n",
+ " 21 | \n",
+ " 2018-02-07 00:00:00.000000 | \n",
" | \n",
"
\n",
" \n",
" 5 | \n",
- " 51 | \n",
- " Présentation | \n",
- " 16 | \n",
- " 2018-01-17 00:00:00.000000 | \n",
+ " 69 | \n",
+ " 6 - Inspecteur | \n",
+ " 21 | \n",
+ " 2018-02-07 00:00:00.000000 | \n",
+ " | \n",
+ "
\n",
+ " \n",
+ " 6 | \n",
+ " 70 | \n",
+ " 7 - La tache | \n",
+ " 21 | \n",
+ " 2018-02-07 00:00:00.000000 | \n",
" | \n",
"
\n",
" \n",
@@ -146,16 +369,17 @@
""
],
"text/plain": [
- " id name eval_id date comment\n",
- "0 43 1 QCM 16 2018-01-16 00:00:00.000000 \n",
- "1 44 2 Bien assis? 16 2018-01-16 00:00:00.000000 \n",
- "2 45 3 L'urne 16 2018-01-16 00:00:00.000000 \n",
- "3 46 4 Programme de calculs 16 2018-01-16 00:00:00.000000 \n",
- "4 47 5 Roule cycliste 16 2018-01-16 00:00:00.000000 \n",
- "5 51 Présentation 16 2018-01-17 00:00:00.000000 "
+ " id name eval_id date comment\n",
+ "0 64 1 - QCM 21 2018-02-07 00:00:00.000000 \n",
+ "1 65 2 - Boite de chocolat 21 2018-02-07 00:00:00.000000 \n",
+ "2 66 3 - Scratch 21 2018-02-07 00:00:00.000000 \n",
+ "3 67 4 - Programme de calcul 21 2018-02-07 00:00:00.000000 \n",
+ "4 68 5 - Macaron 21 2018-02-07 00:00:00.000000 \n",
+ "5 69 6 - Inspecteur 21 2018-02-07 00:00:00.000000 \n",
+ "6 70 7 - La tache 21 2018-02-07 00:00:00.000000 "
]
},
- "execution_count": 6,
+ "execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
@@ -166,13 +390,13 @@
},
{
"cell_type": "code",
- "execution_count": 7,
+ "execution_count": 9,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
- "wb = xlsxwriter.Workbook(\"DS4_302.xlsx\")"
+ "wb = xlsxwriter.Workbook(\"DNB_BLANC_pro1.xlsx\")"
]
},
{
@@ -184,8 +408,10 @@
},
{
"cell_type": "code",
- "execution_count": 8,
- "metadata": {},
+ "execution_count": 10,
+ "metadata": {
+ "collapsed": true
+ },
"outputs": [],
"source": [
"eval_format = wb.add_format({'bold': True, 'font_color': 'red'})\n",
@@ -203,7 +429,7 @@
},
{
"cell_type": "code",
- "execution_count": 9,
+ "execution_count": 11,
"metadata": {
"collapsed": true
},
@@ -214,7 +440,7 @@
},
{
"cell_type": "code",
- "execution_count": 10,
+ "execution_count": 12,
"metadata": {
"collapsed": true
},
@@ -232,7 +458,7 @@
},
{
"cell_type": "code",
- "execution_count": 11,
+ "execution_count": 13,
"metadata": {},
"outputs": [
{
@@ -241,7 +467,7 @@
"0"
]
},
- "execution_count": 11,
+ "execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
@@ -260,7 +486,7 @@
},
{
"cell_type": "code",
- "execution_count": 12,
+ "execution_count": 14,
"metadata": {
"collapsed": true
},
@@ -274,7 +500,7 @@
},
{
"cell_type": "code",
- "execution_count": 13,
+ "execution_count": 15,
"metadata": {
"collapsed": true
},
@@ -294,8 +520,9 @@
},
{
"cell_type": "code",
- "execution_count": 14,
+ "execution_count": 16,
"metadata": {
+ "collapsed": true,
"scrolled": false
},
"outputs": [],
@@ -313,7 +540,7 @@
},
{
"cell_type": "code",
- "execution_count": 15,
+ "execution_count": 17,
"metadata": {
"collapsed": true
},
@@ -331,8 +558,10 @@
},
{
"cell_type": "code",
- "execution_count": 16,
- "metadata": {},
+ "execution_count": 13,
+ "metadata": {
+ "collapsed": true
+ },
"outputs": [],
"source": [
"from openpyxl import Workbook\n",
@@ -341,7 +570,7 @@
},
{
"cell_type": "code",
- "execution_count": 17,
+ "execution_count": 14,
"metadata": {},
"outputs": [
{
@@ -350,7 +579,7 @@
"'00FF0000'"
]
},
- "execution_count": 17,
+ "execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
@@ -361,7 +590,7 @@
},
{
"cell_type": "code",
- "execution_count": 18,
+ "execution_count": 15,
"metadata": {
"collapsed": true
},
@@ -372,7 +601,7 @@
},
{
"cell_type": "code",
- "execution_count": 19,
+ "execution_count": 16,
"metadata": {
"collapsed": true
},
@@ -383,16 +612,16 @@
},
{
"cell_type": "code",
- "execution_count": 20,
+ "execution_count": 17,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
- ""
+ ""
]
},
- "execution_count": 20,
+ "execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
@@ -404,8 +633,10 @@
},
{
"cell_type": "code",
- "execution_count": 21,
- "metadata": {},
+ "execution_count": 18,
+ "metadata": {
+ "collapsed": true
+ },
"outputs": [],
"source": [
"def q_line(q, row, ws):\n",
@@ -416,7 +647,7 @@
},
{
"cell_type": "code",
- "execution_count": 22,
+ "execution_count": 19,
"metadata": {
"collapsed": true
},
@@ -435,16 +666,16 @@
},
{
"cell_type": "code",
- "execution_count": 23,
+ "execution_count": 20,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
- ""
+ ""
]
},
- "execution_count": 23,
+ "execution_count": 20,
"metadata": {},
"output_type": "execute_result"
}
@@ -464,13 +695,33 @@
},
{
"cell_type": "code",
- "execution_count": 24,
+ "execution_count": 21,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "'302'"
+ ]
+ },
+ "execution_count": 21,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "ev.tribe"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 22,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
- "wb.save(\"./DS4_302.xlsx\")"
+ "wb.save(f\"./{ev.name}-{ev.tribe}.xlsx\")"
]
},
{
diff --git a/Notes/DNB blanc1-gene.xlsx b/Notes/DNB blanc1-gene.xlsx
new file mode 100644
index 0000000..58a1104
Binary files /dev/null and b/Notes/DNB blanc1-gene.xlsx differ
diff --git a/Notes/DNB blanc1-pro.xlsx b/Notes/DNB blanc1-pro.xlsx
new file mode 100644
index 0000000..9dd410d
Binary files /dev/null and b/Notes/DNB blanc1-pro.xlsx differ
| | | |