Skip to content

Commit

Permalink
Improve description of apply_thresholds
Browse files Browse the repository at this point in the history
Co-authored-by: Hajar AIT EL KADI <[email protected]>
  • Loading branch information
Mauko Quiroga and HAEKADI authored Aug 25, 2021
1 parent f4713af commit 276ccf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openfisca_core/commons/formulas.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def apply_thresholds(

assert len(condlist) == len(choices), \
"apply_thresholds must be called with the same number of thresholds " \
"than choices, or one more choice"
"as choices, or with one additional choice."

return numpy.select(condlist, choices)

Expand Down

0 comments on commit 276ccf2

Please sign in to comment.