h2integrate.core.supported_models#
Functions
|
Check if a technology is an electricity producer. |
- h2integrate.core.supported_models.is_electricity_producer(tech_name)#
Check if a technology is an electricity producer.
- Parameters:
tech_name (str) -- The name of the technology to check.
- Returns:
True if tech_name starts with any of the known electricity producing tech prefixes (e.g., 'wind', 'solar', 'pv', 'grid_buy', etc.).
- Return type:
bool
Note
This uses prefix matching, so 'grid_buy_1' and 'grid_buy_2' would both be considered electricity producers. Be careful when naming technologies to avoid unintended matches (e.g., 'pv_battery' would be incorrectly identified as an electricity producer).