2021-04-10 17:35:40 +02:00
|
|
|
|
2021-04-15 09:44:39 +02:00
|
|
|
"""Configuration (chemins et données qui ne sont pas dans les documents)
|
2021-04-10 17:35:40 +02:00
|
|
|
"""
|
|
|
|
import os
|
|
|
|
|
|
|
|
class Config(object):
|
|
|
|
ROOT=".."
|
2021-04-15 09:44:39 +02:00
|
|
|
# ECTS des UE de chaque semestres
|
|
|
|
ECTS = {
|
|
|
|
1 : {
|
|
|
|
"RT1" : 12, "RT2" : 8, "RT3" : 10,
|
|
|
|
},
|
|
|
|
2 : {
|
|
|
|
"RT1" : 11, "RT2" : 10, "RT3" : 9,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Safety check
|
|
|
|
for sem_id in Config.ECTS:
|
|
|
|
sum_ects_sem = sum( [ Config.ECTS[sem_id][ue] for ue in Config.ECTS[sem_id] ] )
|
|
|
|
assert sum_ects_sem == 30
|
|
|
|
|
|
|
|
|
2021-04-10 17:35:40 +02:00
|
|
|
|