diff --git a/app/comp/moy_mod.py b/app/comp/moy_mod.py index bf4afe7a01..f79982f7ce 100644 --- a/app/comp/moy_mod.py +++ b/app/comp/moy_mod.py @@ -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)