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

feat: add gas object to Household #296

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

zz-hh-aa
Copy link
Collaborator

When working on social value, I found we needed to access the kwh demand figure from Household, so this PR refactors Household to store those values in a new gasDemand object property and makes its methods more concise too.

@zz-hh-aa zz-hh-aa requested a review from a team January 24, 2025 11:41
Copy link

vercel bot commented Jan 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fairhold-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 24, 2025 2:34pm

app/models/Household.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@DafyddLlyr DafyddLlyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes are much clearer! One small question / comment.

Comment on lines 41 to 46
public gasDemand = {
kwhExistingBuildYearly: 0,
kwhNewBuildOrRetrofitYearly: 0,
billExistingBuildYearly: 0,
billNewBuildOrRetrofitYearly: 0
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this have to be an instantiated object, or can it just be a type?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heh this was me confusing myself 😓 changed back to type in eca2ba6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants