mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
feature devcontainer
This commit is contained in:
parent
4d7e2ed793
commit
593196d2c0
2 changed files with 9 additions and 12 deletions
|
|
@ -14,4 +14,4 @@ openpyxl==3.1.2
|
||||||
pytz
|
pytz
|
||||||
uvicorn[standard]
|
uvicorn[standard]
|
||||||
sqlmodel
|
sqlmodel
|
||||||
|
ipykernel
|
||||||
|
|
|
||||||
|
|
@ -14,16 +14,12 @@ from collections import defaultdict
|
||||||
|
|
||||||
# PORTFOLIO_ID = 206
|
# PORTFOLIO_ID = 206
|
||||||
# SCENARIOS = [389]
|
# SCENARIOS = [389]
|
||||||
PORTFOLIO_ID = 435 # Peabody
|
PORTFOLIO_ID = 449 # Peabody
|
||||||
SCENARIOS = [
|
SCENARIOS = [
|
||||||
908,
|
922
|
||||||
909,
|
|
||||||
910,
|
|
||||||
]
|
]
|
||||||
scenario_names = {
|
scenario_names = {
|
||||||
908: "EPC C - no solid floor, ashp 3.0",
|
922: "EPC C",
|
||||||
909: "EPC C - no solid floor, no EWI or IWI, ashp 3.0",
|
|
||||||
910: "EPC B - no solid floor, no EWI, ashp 3.0"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -232,12 +228,13 @@ for scenario_id in SCENARIOS:
|
||||||
df["uprn"] = df["uprn"].astype(str)
|
df["uprn"] = df["uprn"].astype(str)
|
||||||
|
|
||||||
# Create excel to store to
|
# Create excel to store to
|
||||||
filename = ("/Users/khalimconn-kowlessar/Documents/hestia/Customers/Peabody/Nov 2025 Consulting "
|
filename = (f"{scenario_names[scenario_id]}-clarion.xlsx")
|
||||||
f"Project/Final SAL/{scenario_names[scenario_id]} - 20250113 final.xlsx")
|
|
||||||
with pd.ExcelWriter(filename) as writer:
|
with pd.ExcelWriter(filename) as writer:
|
||||||
df.to_excel(writer, sheet_name="properties", index=False)
|
df.to_excel(writer, sheet_name="properties", index=False)
|
||||||
|
|
||||||
|
|
||||||
|
#( Junte) don't need anything below this
|
||||||
|
|
||||||
# asset_list = pd.DataFrame(asset_list)
|
# asset_list = pd.DataFrame(asset_list)
|
||||||
# asset_list = asset_list.rename(
|
# asset_list = asset_list.rename(
|
||||||
# columns={
|
# columns={
|
||||||
|
|
@ -293,7 +290,7 @@ asset_list = asset_list.merge(
|
||||||
|
|
||||||
# For exporting
|
# For exporting
|
||||||
df.to_excel(
|
df.to_excel(
|
||||||
"/Users/khalimconn-kowlessar/Documents/hestia/Customers/Lincs Rural/EPC C -without floors proposed measures - "
|
"EPC C -without floors proposed measures - "
|
||||||
"with ID.xlsx",
|
"with ID.xlsx",
|
||||||
index=False
|
index=False
|
||||||
)
|
)
|
||||||
|
|
@ -381,7 +378,7 @@ for _, row in asset_list.iterrows():
|
||||||
|
|
||||||
# Store output
|
# Store output
|
||||||
asset_list.to_excel(
|
asset_list.to_excel(
|
||||||
"/Users/khalimconn-kowlessar/Documents/hestia/sfr/Spring JV/20250624_portfolio_retrofit_packages.xlsx",
|
"fabric_clarian_packages.xlsx",
|
||||||
index=False
|
index=False
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue