forked from ScoDoc/DocScoDoc
Calcul moyenne LP UE stages&projets: bug fix #388
This commit is contained in:
parent
45b47d4cf2
commit
7f786faa2d
@ -30,6 +30,8 @@
|
||||
import collections
|
||||
import enum
|
||||
|
||||
import numpy as np
|
||||
|
||||
from app import log
|
||||
|
||||
|
||||
@ -487,7 +489,7 @@ class ParcoursLP2014(TypeParcours):
|
||||
(ue_status["moy"], ue_status["coef_ue"])
|
||||
for ue_status in ues_status
|
||||
if ue_status["ue"]["type"] == UE_STAGE_LP
|
||||
and type(ue_status["moy"]) == float
|
||||
and np.issubdtype(type(ue_status["moy"]), np.floating)
|
||||
]
|
||||
# Moyenne des moyennes:
|
||||
sum_coef = sum(x[1] for x in mc_stages_proj)
|
||||
|
Loading…
Reference in New Issue
Block a user