Skip to content

Commit

Permalink
Merge pull request #343 from singularity-energy/greg/fix_bugs
Browse files Browse the repository at this point in the history
Cleanup bugs in dev branch
  • Loading branch information
grgmiller authored Feb 10, 2024
2 parents e747564 + 3107174 commit 31e90bf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,14 @@ git clone https://github.com/singularity-energy/open-grid-emissions.git
cd open-grid-emissions
pipenv sync
pipenv shell
pip install build
python -m build
pip install .
```

The pipeline can be run as follows:
```bash
cd src
cd src/oge
python data_pipeline.py --year 2022
```
independently of the installation method you chose.
Expand Down
8 changes: 7 additions & 1 deletion src/oge/emissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,13 @@ def calculate_electric_allocation_factor(df):
df["electric_allocation_factor"] = df["electric_allocation_factor"].fillna(1)

# remove intermediate columns
df = df.drop(columns=["useful_thermal_output", "generation_mmbtu"])
df = df.drop(
columns=[
"gross_thermal_output_for_heating_mmbtu",
"useful_thermal_output_mmbtu",
"generation_mmbtu",
]
)

return df

Expand Down

0 comments on commit 31e90bf

Please sign in to comment.