-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
enhancementNew feature or requestNew feature or request
Description
To allow more flexibility for reporting of technical parameters, we want to allow "wildcard-codes" echoing the wildcard-implementation in pyam using *
.
Concept: a VariableCode can be defined as
- Capital Cost|Electricity|Coal|*:
description: Technology-specific capital cost of a newly installed plant to generate
electricity from coal
unit: USD_2010/kW
The validation-method should then accept any variable that matches the code-name including any string for the wildcard.
This can follow the implementation by @phackstock here
nomenclature/nomenclature/config.py
Line 34 in f210213
pattern = re.compile(escape_regexp(filter_value) + "$") |
To be explicit, any of the following variables should pass validation:
- Capital Cost|Electricity|Coal|1
- Capital Cost|Electricity|Coal|Lignite
- Capital Cost|Electricity|Coal|Super-Critical
- Capital Cost|Electricity|Coal|really dirty stuff
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request