Openfisca-core

Latest version: v41.4.5

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

Scan your dependencies

Page 25 of 60

27.0.1

Technical changes

- Provide three levels of information when running tests depending on context:
- when running `pytest`, all failures are reported, coverage is omitted
- when running `make test`, all failures are reported, with coverage also reported
- in continuous integration, exit on first failure, but report coverage always

27.0.0

Breaking changes

- No longer honor calls to `set_input` for variables which have an end date and for periods after that date.

Migration guide

This change is not expected to actually break much reusing code (if any), as it is unlikely that one would deliberately specify an end date for a variable and use it in computations for periods past that date. However, nothing has previously ruled out relying on that behaviour and it may have been introduced by accident. In particular, it can happen that a variable with a formula and an end date is also, in some applications, used as an input.

26.2.0

- Introduce a way to build a simulation for tabular inputs

New features

- Allow to create a simulation step by step:
1. Create entities with `SimulationBuilder.create_entities(...)`
2. Declare your population
with `SimulationBuilder.declare_person_entity(...)` and `SimulationBuilder.declare_entity(...)`
3. Link between persons in population definition with `SimulationBuilder.join_with_persons(...)`
4. Build a simulation with `SimulationBuilder.build(...)`
5. Set variable values with the already existing `Simulation.set_input(...)` method

26.1.0

- No longer raise an error when a group entity is not specified in a test case, or partially specified.
- Instead, each person is by default allocated to a group of which they are the sole member, with the default role in that group.

26.0.6

- Convert tests that were incompatible with Pytest 4.0+ and reported "xfail" when run with that version

26.0.5

- Update autopep8 and flake8, which in particular now enforce rules W504 and W605
- W504 goes against house style, so we add it to ignored rules
- W605 may seem like an [overreach](https://github.com/PyCQA/pycodestyle/issues/755) but does make sense (additional details in PR description), so we upgrade a few regexes to raw strings

Page 25 of 60

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.