def trim_decote(self, data, trimesters_tot, trim_maj_enf_tot):
     """ Détermination de la décote à appliquer aux pensions """
     P = reduce(getattr, self.param_name.split("."), self.P)
     if P.decote.nb_trim_max != 0:
         agem = data.info_ind["agem"]
         trim_decote = nb_trim_decote(trimesters_tot, trim_maj_enf_tot, agem, P)
         return trim_decote
     else:
         return zeros(data.info_ind.shape[0])
Example #2
0
 def trim_decote(self, data, trimesters_tot, trim_maj_enf_tot):
     ''' Détermination de la décote à appliquer aux pensions '''
     P = reduce(getattr, self.param_name.split('.'), self.P)
     agem = data.info_ind['agem']
     if P.decote.dispositif == 1:
         age_annulation = P.decote.age_null
         trim_decote = max(divide(age_annulation - agem, 3), 0)
     elif P.decote.dispositif == 2:
         trim_decote = nb_trim_decote(trimesters_tot, trim_maj_enf_tot, agem, P)
     return trim_decote
 def trim_decote(self, data, trimesters_tot, trim_maj_enf_tot):
     ''' Détermination de la décote à appliquer aux pensions '''
     P = reduce(getattr, self.param_name.split('.'), self.P)
     if P.decote.nb_trim_max != 0:
         agem = data.info_ind['agem']
         trim_decote = nb_trim_decote(trimesters_tot, trim_maj_enf_tot,
                                      agem, P)
         return trim_decote
     else:
         return zeros(data.info_ind.shape[0])
Example #4
0
 def trim_decote(self, data, trimesters_tot, trim_maj_enf_tot):
     ''' Détermination de la décote à appliquer aux pensions '''
     P = reduce(getattr, self.param_name.split('.'), self.P)
     agem = data.info_ind['agem']
     if P.decote.dispositif == 1:
         age_annulation = P.decote.age_null
         trim_decote = max(divide(age_annulation - agem, 3), 0)
     elif P.decote.dispositif == 2:
         trim_decote = nb_trim_decote(trimesters_tot, trim_maj_enf_tot,
                                      agem, P)
     return trim_decote