Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply Black to Python scripts #1600

Merged
merged 1 commit into from
Sep 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions test/doe_prototype/summarize_performance_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#%% setup
# %% setup
import sqlite3, os

inputPath = "output/"
Expand Down Expand Up @@ -67,7 +67,14 @@
"LargeOfficeDetailed",
]

code_versions = ["90.1-2004", "90.1-2007", "90.1-2010", "90.1-2013", "90.1-2016", "90.1-2019"]
code_versions = [
"90.1-2004",
"90.1-2007",
"90.1-2010",
"90.1-2013",
"90.1-2016",
"90.1-2019",
]

climate_zones = [
"ASHRAE 169-2013-0A",
Expand All @@ -93,7 +100,7 @@
"ASHRAE 169-2013-8B",
]

#%% write header
# %% write header

output = open(outputFilePath, "w")
headers = "Building Type,Template,Climate Zone"
Expand All @@ -102,7 +109,7 @@
headers = headers + "," + end_use + "|" + fuel
output.write(headers + "\n")

#%% read write results data
# %% read write results data
for building_type in building_types:
for code_version in code_versions:
for climate_zone in climate_zones:
Expand Down Expand Up @@ -165,4 +172,4 @@
output.write(oneRow)
conn.close
output.close()
print(outputFilePath + " generated")
print(outputFilePath + " generated")