Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions ochre/utils/envelope.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,8 @@ def calculate_ashrae_infiltration_params(indoor_inf, construction, site, has_flu
# Calculate SLA for above-grade portion of the building (in IP, ft2)
indoor_volume = construction["Conditioned Volume (m^3)"]
indoor_floor_area = construction["Indoor Floor Area (m^2)"]
building_height = construction["Ceiling Height (m)"] * construction["Indoor Floors"] # noqa: F841
building_height_ft = convert(building_height, "m", "ft") # noqa: F841 - in ft
house_pressure = 50
living_sla = (ach * 0.2835 * 4**n_i * convert(indoor_volume, "m^3", "ft^3")) / (
convert(indoor_floor_area, "m^2", "in^2") * house_pressure**n_i * 60
Expand Down
1 change: 1 addition & 0 deletions ochre/utils/equipment.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ def calculate_duct_dse(
# des_in_enthalpy = float(climate_data['Design hin'])
seas_enthalpy = float(climate_data["Seasonal hout"])
seas_in_enthalpy = float(climate_data["Seasonal hin"])
ground_temp = (heating_des_init + cooling_des_init) / 2 # noqa: F841

# Load zone temperature file
df_zone_temps = load_csv(zone_temp_file, index_col="Zone Type")
Expand Down
1 change: 1 addition & 0 deletions test/test_equipment/test_battery.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ def test_calculate_degradation(self):

# Add some cycling data
battery.degradation_data = [(0.3, 0.7), (0.4, 0.8), (0.2, 0.6)]
initial_capacity = battery.capacity_kwh_nominal # noqa: F841

# Run degradation calculation
battery.calculate_degradation()
Expand Down