GridModule.get_co2_production#

GridModule.get_co2_production(import_export, as_source, as_sink)[source]#

Current carbon dioxide production of the grid’s usage.

If the module is exporting to the grid, co2 production will be zero.

Parameters#

import_exportfloat

Amount of energy that is imported or exported.

as_sourcebool

Whether the grid is acting as a source.

as_sinkbool

Whether the grid is acting as a sink.

Returns#

co2_productionfloat

Carbon dioxide production.