Skip to content

Commit

Permalink
Rename operation-emissions to operational-carbon
Browse files Browse the repository at this point in the history
Signed-off-by: Gnanakeethan Balasubramaniam <[email protected]>
  • Loading branch information
gnanakeethan committed Sep 11, 2023
1 parent 23a9175 commit 27fe4f4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
18 changes: 9 additions & 9 deletions docs/Computation Pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,19 +121,19 @@ component:
location: west-us
energy: 43 mWh
grid-intensity: 500 gCO2e / kWh
operational-emissions: 4.7g gCO2e
operational-carbon: 4.7g gCO2e
- timestamp: 2023-07-06T15:00
duration: 5 mins
location: west-us
energy: 20 mWh
grid-intensity: 490 gCO2e / kWh
operational-emissions: 2.9 gCO2e
operational-carbon: 2.9 gCO2e
- timestamp: 2023-07-06T25:00
duration: 5 mins
location: west-us
energy: 18 mWh
grid-intensity: 470 gCO2e / kWh
operational-emissions: 2.8g gCO2e
operational-carbon: 2.8g gCO2e
```
## Normalization
Expand Down Expand Up @@ -184,31 +184,31 @@ component:
location: west-us
energy: 14.3 mWh
grid-intensity: 500 gCO2e / kWh
operational-emissions: 1.57g gCO2e
operational-carbon: 1.57g gCO2e
- timestamp: 2023-07-06T05:00
duration: 5 mins
location: west-us
energy: 14.3 mWh
grid-intensity: 500 gCO2e / kWh
operational-emissions: 1.57g gCO2e
operational-carbon: 1.57g gCO2e
- timestamp: 2023-07-06T10:00
duration: 5 mins
location: west-us
energy: 14.3 mWh
grid-intensity: 500 gCO2e / kWh
operational-emissions: 1.57g gCO2e
operational-carbon: 1.57g gCO2e
- timestamp: 2023-07-06T15:00
duration: 5 mins
location: west-us
energy: 20 mWh
grid-intensity: 490 gCO2e / kWh
operational-emissions: 2.9 gCO2e
operational-carbon: 2.9 gCO2e
- timestamp: 2023-07-06T25:00
duration: 5 mins
location: west-us
energy: 18 mWh
grid-intensity: 470 gCO2e / kWh
operational-emissions: 2.8g gCO2e
operational-carbon: 2.8g gCO2e
observations:
- timestamp: 2023-07-06T00:00
duration: 15 mins
Expand Down Expand Up @@ -352,4 +352,4 @@ component:

> [!tip]
>
> The same normalization plugin code could provide this time series of functional unit denominators. We pass in a fake component with observations that represent the functional unit denominators, pass through the normalization phase, and generate a series of users for the global time series of impact durations.
> The same normalization plugin code could provide this time series of functional unit denominators. We pass in a fake component with observations that represent the functional unit denominators, pass through the normalization phase, and generate a series of users for the global time series of impact durations.
2 changes: 1 addition & 1 deletion docs/implementations/sci-o.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ To calculate the operational emissions O for a software application, use the fol

O = (E * I)

[Operational Emissions...](https://github.com/Green-Software-Foundation/sci/blob/main/Software_Carbon_Intensity/Software_Carbon_Intensity_Specification.md#operational-emissions)
[Operational Emissions...](https://github.com/Green-Software-Foundation/sci/blob/main/Software_Carbon_Intensity/Software_Carbon_Intensity_Specification.md#operational-carbon)

## Implementation

Expand Down
4 changes: 2 additions & 2 deletions src/lib/sci-o/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('ccf:configure test', () => {
{
'grid-ci': 200.0,
energy: 100.0,
'operational-emissions': 100.0 * 200.0,
'operational-carbon': 100.0 * 200.0,
},
]);
await expect(
Expand All @@ -31,7 +31,7 @@ describe('ccf:configure test', () => {
{
'grid-ci': 212.1,
energy: 100.0,
'operational-emissions': 100.0 * 212.1,
'operational-carbon': 100.0 * 212.1,
},
]);
await expect(
Expand Down
2 changes: 1 addition & 1 deletion src/lib/sci-o/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class SciOModel implements IImpactModelInterface {
}
const grid_ci = parseFloat(observation['grid-ci']);
const energy = parseFloat(observation['energy']);
observation['operational-emissions'] = grid_ci * energy;
observation['operational-carbon'] = grid_ci * energy;
return observation;
});

Expand Down

0 comments on commit 27fe4f4

Please sign in to comment.