openfisca / openfisca-tunisia

Tunisian tax and benefit system for OpenFisca
http://www.openfisca.tn
15 stars 7 forks source link

Prevent deprecation #37

Closed benjello closed 6 years ago

benjello commented 7 years ago
openfisca_tunisia/reforms/de_net_a_brut.py:    simulation.get_or_new_holder('salaire_imposable').array = salaire_imposable

yields:

/home/benjello/openfisca/openfisca-core/openfisca_core/simulations.py:102: Warning: The simulation.holder_by_name attribute has been deprecated. Please use entity.get_holder instead. Using simulation.holder_by_name may negatively impact performances
  Warning
/home/benjello/openfisca/openfisca-core/openfisca_core/simulations.py:233: Warning: The simulation.get_or_new_holder method has been deprecated. Please use entity.get_holder instead.
benjello commented 6 years ago

Fixed in update-v20