Module buildstock_query.tools.upgrades_visualizer
Expand source code
from .upgrades_visualizer import main
__all__ = ['main']
Sub-modules
buildstock_query.tools.upgrades_visualizer.figure
buildstock_query.tools.upgrades_visualizer.plot_utils
buildstock_query.tools.upgrades_visualizer.upgrades_visualizer
-
Upgrades Visualizer Experimental Stage. :author: Rajendra.Adhikari@nrel.gov
buildstock_query.tools.upgrades_visualizer.viz_data
Functions
def main()
-
Expand source code
def main(): print("Welcome to Upgrades Visualizer.") yaml_path = inquirer.text(message="Please enter path to the buildstock configuration yml file: ", default="").execute() opt_sat_path = inquirer.text(message="Please enter path to the options saturation csv file: ", default="").execute() workgroup = inquirer.text(message="Please Athena workgroup name: ", default="rescore").execute() db_name = inquirer.text(message="Please enter database_name " "(found in postprocessing:aws:athena in the buildstock configuration file): ", default='').execute() table_name = inquirer.text(message="Please enter table name (same as output folder name; found under " "output_directory in the buildstock configuration file). [Enter two names " "separated by comma if baseline and upgrades are in different run] :", default="" ).execute() if ',' in table_name: table_name = table_name.split(',') app = _get_app(yaml_path=yaml_path, opt_sat_path=opt_sat_path, workgroup=workgroup, db_name=db_name, table_name=table_name) app.run_server(debug=False, port=8005)