Error when trying to encode scalar Enum arrays #922
Labels
kind:fix
Bugs are defects and failure demand.
level:starter
Suited for beginners and new contributors
The following code fails for scalar Enum arrays (without dimension):
openfisca-core/openfisca_core/indexed_enums.py
Line 60 in 871bf20
A real-life example of this bug:
https://github.com/openfisca/openfisca-france/blob/7918eec5be4c2cdeb65da9fb023cfbfcce537156/openfisca_france/model/prestations/logement_social.py#L71-L81
You can reproduce the issue with the following code:
What's the expected behaviour here?
cc @Morendil @fpagnoux
The text was updated successfully, but these errors were encountered: