-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #342 from singularity-energy/development
v0.3.1
- Loading branch information
Showing
19 changed files
with
1,892 additions
and
1,712 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
# Set up the OGE logging configuration once. | ||
import logging | ||
from oge.logging_util import configure_root_logger | ||
from oge.filepaths import outputs_folder | ||
|
||
configure_root_logger(outputs_folder("logfile.txt"), logging.INFO) | ||
configure_root_logger(logfile=None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# specify the energy_source_codes that are considered clean/carbon-free | ||
CLEAN_FUELS = ["SUN", "MWH", "WND", "WAT", "WH", "PUR", "NUC"] | ||
|
||
# specify the energy_source_codes that are considerd to be biomass | ||
BIOMASS_FUELS = [ | ||
"AB", | ||
"BG", | ||
"BLQ", | ||
"DG", | ||
"LFG", | ||
"MSB", | ||
"OBG", | ||
"OBL", | ||
"OBS", | ||
"SLW", | ||
"WDL", | ||
"WDS", | ||
] | ||
|
||
TIME_RESOLUTIONS = {"hourly": "H", "monthly": "M", "annual": "A"} | ||
|
||
# derived from table 2.4-4 of the EPA's AP-42 document | ||
nox_lb_per_mmbtu_flared_landfill_gas = 0.078 | ||
|
||
# values assumed by eGRID for CHP efficiency | ||
chp_gross_thermal_output_efficiency = 0.8 | ||
chp_useful_thermal_output_efficiency = 0.75 | ||
|
||
|
||
class ConversionFactors(float): | ||
"""Defines conversion factors between common units.""" | ||
|
||
lb_to_kg = 0.453592 | ||
mmbtu_to_GJ = 1.055056 | ||
mwh_to_mmbtu = 3.412142 | ||
short_ton_to_lbs = 2000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.