1
0
forked from ScoDoc/ScoDoc

Calcul moyenne LP UE stages&projets: bug fix #388

This commit is contained in:
Emmanuel Viennet 2022-11-07 18:47:25 +01:00
parent 45b47d4cf2
commit 7f786faa2d

View File

@ -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)