Skip to content

Commit

Permalink
Corrige le traitement des TracingParameterNodeAtInstant (#187)
Browse files Browse the repository at this point in the history
* Accepte les TracingParameterNodeAtInstant
  • Loading branch information
Allan-CodeWorks authored Nov 13, 2023
1 parent a7dac58 commit 97f31c0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# Changelog

## [6.6.1] - 2023-11-13

_Pour les changements détaillés et les discussions associées, référencez la pull request [#187](https://github.com/openfisca/openfisca-france-local/pull/187)_

### Fixed

- Corrige le crash de la réforme dynamique lors des simulation en mode Tracing

## [6.6.0] - 2023-10-24

_Pour les changements détaillés et les discussions associées, référencez la pull request [#185](https://github.com/openfisca/openfisca-france-local/pull/185)
_Pour les changements détaillés et les discussions associées, référencez la pull request [#185](https://github.com/openfisca/openfisca-france-local/pull/185)_

### Changed

Expand Down
2 changes: 1 addition & 1 deletion openfisca_france_local/aides_jeunes_reform.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def build_profil_evaluator(profil: dict) -> ProfileEvaluator:

def eval_conditions(test_conditions: 'list[ConditionEvaluator]', individu: Population, period: Period, parameters: ParameterNodeAtInstant) -> np.array:
def get_conditions(parameters: Union[ParameterAtInstant, ParameterNodeAtInstant]):
if isinstance(parameters, ParameterNodeAtInstant) and 'conditions' in parameters._children:
if hasattr(parameters, "_children") and 'conditions' in parameters._children:
conditions = parameters.conditions
else:
conditions = []
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name='OpenFisca-France-Local',
version='6.6.0',
version='6.6.1',
author='OpenFisca Team',
author_email='[email protected]',
classifiers=[
Expand Down

0 comments on commit 97f31c0

Please sign in to comment.