mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
removing temp code
This commit is contained in:
parent
3ef346b248
commit
730ad0fd71
1 changed files with 0 additions and 28 deletions
|
|
@ -658,34 +658,6 @@ class TrainingDataset(BaseDataset):
|
|||
|
||||
components_to_expand = cols_to_drop.keys()
|
||||
|
||||
for comp in list(components_to_expand):
|
||||
if comp == "main-fuel":
|
||||
cleaned_key = "main-fuel"
|
||||
left_on_starting = "main_fuel_starting"
|
||||
left_on_ending = "main_fuel_ending"
|
||||
original_cols = ["main_fuel_starting", "main_fuel_ending"]
|
||||
else:
|
||||
cleaned_key = f"{comp}-description"
|
||||
left_on_starting = f"{comp}_description_starting"
|
||||
left_on_ending = f"{comp}_description_ending"
|
||||
original_cols = [
|
||||
f"{comp}_description_starting",
|
||||
f"{comp}_description_ending",
|
||||
]
|
||||
df = pd.DataFrame(cleaned_lookup[cleaned_key])
|
||||
# Check for the existence
|
||||
filtered_1 = df[df["original_description"] == self.df[left_on_starting].values[0]]
|
||||
filtered_2 = df[df["original_description"] == self.df[left_on_ending].values[0]]
|
||||
if filtered_1.empty:
|
||||
print(comp)
|
||||
print(self.df[left_on_starting].values[0])
|
||||
|
||||
if filtered_2.empty:
|
||||
print(f"Original description {self.df[left_on_ending].values[0]} not found in lookup")
|
||||
|
||||
z = pd.DataFrame(cleaned_lookup["roof-description"])
|
||||
z[z["original_description"] == "Average thermal transmittance 0.20 W/m?K"]
|
||||
|
||||
for component in components_to_expand:
|
||||
# TODO: change cleaned dataframe to have underscores instead of dashes
|
||||
if component == "main-fuel":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue