Skip to content

Commit

Permalink
minor ruff format adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
zsarnoczay committed Jan 9, 2025
1 parent 826d104 commit 8d27267
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ def overwrite_ds4_data():

# # this allows you to test it with a few archetypes before
# # running the whole thing
#flt_bldg_df = bldg_df.iloc[:100]
# flt_bldg_df = bldg_df.iloc[:100]

# labels for all features, damage state data, and loss data
column_names = [
Expand Down Expand Up @@ -1201,7 +1201,9 @@ def SSE_loss(params, res_type='SSE'): # noqa: N802

# store the COV for normal distributions (instead of the std)
normal_mask = df_db_fit[f'LS{LS_i}-Family'] == 'normal'
df_db_fit.loc[normal_mask, f'LS{LS_i}-Theta_1'] /= df_db_fit.loc[normal_mask, f'LS{LS_i}-Theta_0']
df_db_fit.loc[normal_mask, f'LS{LS_i}-Theta_1'] /= df_db_fit.loc[
normal_mask, f'LS{LS_i}-Theta_0'
]
df_db_fit = df_db_fit.round({f'LS{LS_i}-Theta_1': 2})

df_db_original, df_db_fit = [
Expand Down

0 comments on commit 8d27267

Please sign in to comment.