IAMconsortium / pyam

Analysis & visualization of energy & climate scenarios
https://pyam-iamc.readthedocs.io/
Apache License 2.0
226 stars 118 forks source link

Type-checking of arguments in aggregation methods #641

Open danielhuppmann opened 2 years ago

danielhuppmann commented 2 years ago

Via unexpected behavior observed in the nomenclature package (see https://github.com/IAMconsortium/nomenclature/pull/106)...

It would be helpful to add proper type validation for the boolean arguments of the aggregate() and aggregation_region() methods (and probably a few more places).