forked from ScoDoc/ScoDoc
test
This commit is contained in:
parent
3d8fe461b9
commit
54b2580478
|
@ -61,7 +61,15 @@ def df_load_evaluations_poids(
|
|||
).filter_by(moduleimpl_id=moduleimpl_id):
|
||||
df[eval_poids.ue_id][eval_poids.evaluation_id] = eval_poids.poids
|
||||
if default_poids is not None:
|
||||
df.fillna(value=default_poids, inplace=True)
|
||||
coefs = modimpl.formsemestre.formation.get_module_coefs(
|
||||
modimpl.formsemestre.semestre_id
|
||||
)
|
||||
module_id = modimpl.module_id
|
||||
module_coefs = coefs[module_id].to_dict()
|
||||
normalised = dict(
|
||||
[(ue, 0.0 if coef == 0.0 else 1.0) for ue, coef in module_coefs.items()]
|
||||
)
|
||||
df.fillna(normalised, inplace=True)
|
||||
return df, ues
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue