Skip to content

Commit

Permalink
Style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeee committed Nov 10, 2023
1 parent 0f72993 commit 1357865
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,16 +296,16 @@ def get_elligible_output_columns(category, fuel):
elligible_cols = qoi_cols if resolution == 'annual' else []
elif category == 'emissions':
elligible_cols = emissions_cols if resolution == 'annual' else\
viz_data.get_emissions_cols(resolution=resolution)
viz_data.get_emissions_cols(resolution=resolution)
elif category == 'upgrade_cost':
elligible_cols = cost_cols if resolution == 'annual' else []
else:
raise ValueError(f"Invalid tab {category}")
return elligible_cols

@app.callback(
Output('radio_resolution', 'options'),
Input('radio_resolution', 'value'),
Output('radio_resolution', 'options'),
Input('radio_resolution', 'value'),
)
def update_resolution(res):
nonlocal resolution
Expand Down Expand Up @@ -735,7 +735,7 @@ def show_char_report(bldg_id, bldg_options, bldg_options2, inp_char: list[str],
else:
bldg_list = [int(bldg_id)] if bldg_id else [int(b) for b in bldg_options]
chars_df = viz_data.bs_res_df.filter(pl.col('building_id').is_in(
set(bldg_list))).select(inp_char + ['building_id'])
set(bldg_list))).select(inp_char + ['building_id'])
char2bldgs = chars_df.groupby(inp_char).agg('building_id')
if (total_len := len(char2bldgs)) > 250:
return [f"Sorry, this would create more than 200 ({total_len}) rows."], {}
Expand Down Expand Up @@ -812,18 +812,18 @@ def update_figure(view_tab, grp_by, fuel, enduse, graph_type, savings_type, chng
def main():
print("Welcome to Upgrades Visualizer.")
yaml_path = inquirer.text(message="Please enter path to the buildstock configuration yml file: ",
default="/Users/radhikar/Documents/resstock/project_national/national_baseline.yml").execute()
default="").execute()
opt_sat_path = inquirer.text(message="Please enter path to the options saturation csv file: ",
default="/Users/radhikar/Downloads/options_saturations.csv").execute()
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='aris').execute()
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="aris_1269_nov03"
default=""
).execute()

if ',' in table_name:
Expand Down

0 comments on commit 1357865

Please sign in to comment.