-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from nestauk/5-summarise-clusters
5 summarise clusters
- Loading branch information
Showing
22 changed files
with
1,810 additions
and
5,754 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,30 @@ | ||
import logging | ||
import os | ||
from pathlib import Path | ||
from typing import Optional | ||
import yaml | ||
|
||
from pathlib import Path | ||
from typing import Optional | ||
|
||
import dotenv | ||
import yaml | ||
|
||
|
||
dotenv.load_dotenv() | ||
|
||
|
||
def get_yaml_config(file_path: Path) -> Optional[dict]: | ||
"""Fetch yaml config and return as dict if it exists.""" | ||
if file_path.exists(): | ||
with open(file_path, "rt") as f: | ||
return yaml.load(f.read(), Loader=yaml.FullLoader) | ||
|
||
|
||
# Define project base directory | ||
PROJECT_DIR = Path(__file__).resolve().parents[1] | ||
|
||
# Define logger | ||
# Define logger | ||
logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s") | ||
logger = logging.getLogger(__name__) | ||
|
||
# base/global config | ||
_base_config_path = Path(__file__).parent.resolve() / "config/base.yaml" | ||
config = get_yaml_config(_base_config_path) | ||
config = get_yaml_config(_base_config_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
|
||
--- | ||
questions: ["What, if anything, do you know about the Boiler Upgrade Scheme? If you don't know anything about the scheme, just give it your best guess.", | ||
"What, if anything, do you know about the process of applying for Boiler Upgrade Scheme funding?", | ||
"What do you think are the eligibility requirements for someone to use this scheme?", | ||
"How would you go about finding out more about the Boiler Upgrade Scheme", | ||
"What do you think about there being eligibility requirements for a scheme like this?", | ||
"As a homeowner, where do you see yourself in relation to the eligibility requirements?", | ||
"What, if any, type of work do you think needs to be done to a house to replace fossil fuel heating systems?", | ||
"What types of home upgrades would you consider getting done to your house to improve the efficiency of your heating system?", | ||
"What types of work to your house wouldn't you consider?", | ||
"What are some energy-efficient heating systems that you could consider, apart from the one currently in use at your home?", | ||
"Is there anything we've talked about you'd like to discuss further?"] | ||
"What, if anything, do you know about the process of applying for Boiler Upgrade Scheme funding?", | ||
"What do you think are the eligibility requirements for someone to use this scheme?", | ||
"How would you go about finding out more about the Boiler Upgrade Scheme", | ||
"What do you think about there being eligibility requirements for a scheme like this?", | ||
"As a homeowner, where do you see yourself in relation to the eligibility requirements?", | ||
"What, if any, type of work do you think needs to be done to a house to replace fossil fuel heating systems?", | ||
"What types of home upgrades would you consider getting done to your house to improve the efficiency of your heating system?", | ||
"What types of work to your house wouldn't you consider?", | ||
"What are some energy-efficient heating systems that you could consider, apart from the one currently in use at your home?", | ||
"Is there anything we've talked about you'd like to discuss further?"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.