openfisca / openfisca-core

OpenFisca core engine. See other repositories for countries-specific code & data.
https://openfisca.org
GNU Affero General Public License v3.0
168 stars 75 forks source link

Informative error message when using scale parameter values without required metadata #1148

Open MaxGhenis opened 2 years ago

MaxGhenis commented 2 years ago

When using scale parameters with amount/threshold/rate fields, and omitting the required type metadata field, and calling it via calc, the error message gives something like "int isn't callable". It would be helpful for the error message to say that it's not a scale parameter.

benjello commented 2 years ago

Hi @MaxGhenis. Could you provide a reproductible minimal example so I can try to fix this. Thanks !