Openfisca-core

Latest version: v41.4.5

Safety actively analyzes 628918 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 17 of 60

34.6.2

Documentation

- Improve `taxscales.py` documentation.
- Details:
- Specify the types of the arguments.
- Follow the same style as other parts of the documentation.

34.6.1

Technical change

- Downgrade numpy version's upper bound to 1.17
- Details:
- NumPy 1.18 deprecates the use of several of its methods.
- Changes in `numpy.select` have impacted other packages depending on OpenFisca Core.

34.6.0

_Note: this version has been unpublished due to an issue introduced by 34.5.4. Please use 34.6.1 or a more recent version._

New features

- Introduce `AbstractTaxRateScale.bracket_indices`.
- Introduce `MarginalTaxScale.marginal_rates`.
- Details:
- This new methods allow users to:
- Compute the bracket indices relevant for any tax base.
- Compute the marginal rates relevant for any tax base.

Usage notes

1. To use `AbstractTaxRateScale.bracket_indices`:

py
from numpy import array

from openfisca_core.taxscales import AbstractRateTaxScale

tax_scale = AbstractRateTaxScale()
tax_scale.add_bracket(0, 0)
tax_scale.add_bracket(100, 0.1)
tax_base = array([0, 150])
tax_scale.bracket_indices(tax_base) [0, 1]


2. To use `MarginalTaxScale.marginal_rates`:

py
from numpy import array

from openfisca_core.taxscales import MarginalRateTaxScale

tax_scale = MarginalRateTaxScale()
tax_scale.add_bracket(0, 0)
tax_scale.add_bracket(100, 0.1)
tax_base = array([0, 150])
tax_scale.marginal_rates(tax_base) [0.0, 0.1]

34.5.4

Technical change

_Note: this version has been unpublished due to an issue introduced by it. Please use 34.6.1 or a more recent version._

- Update numpy version's upper bound to 1.18

34.5.3

- Rename deprecated doc reference `openfisca-run-test` to `openfisca_test`.

34.5.2

- Refactor the use of the now-deprecated `gunicorn.six` module.
- In versions < 20, [gunicorn](http://docs.gunicorn.org/en/19.3/custom.html) provided the `gunicorn.six` module.
- In version >= 20, this [gunicorn](http://docs.gunicorn.org/en/stable/custom.html) module has been deprecated.
- Adapt `openfisca serve` code to the new gunicorn API.

Page 17 of 60

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.