forked from ScoDoc/DocScoDoc
Gestion erreur si lancement des calculs avec... 0 UEs
This commit is contained in:
parent
f85deecb64
commit
0d97d5bfc6
@ -233,6 +233,8 @@ class ModuleImplResultsAPC(ModuleImplResults):
|
||||
assert evals_poids_df.shape[0] == nb_evals # compat notes/poids
|
||||
if nb_etuds == 0:
|
||||
return pd.DataFrame(index=[], columns=evals_poids_df.columns)
|
||||
if nb_ues == 0:
|
||||
return pd.DataFrame(index=self.evals_notes.index, columns=[])
|
||||
evals_coefs = self.get_evaluations_coefs(moduleimpl)
|
||||
evals_poids = evals_poids_df.values * evals_coefs
|
||||
# -> evals_poids shape : (nb_evals, nb_ues)
|
||||
|
Loading…
Reference in New Issue
Block a user