Skip to content

Commit

Permalink
ruff check
Browse files Browse the repository at this point in the history
  • Loading branch information
jinyan1214 committed Nov 13, 2024
1 parent 74a8e7d commit 860e9d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pelicun/resources/auto/Hazus_Earthquake_IM.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ def auto_populate(aim): # noqa: C901
# available
year_built = gi['YearBuilt']

design_l = ap_design_level_w1 if 'W1' in bt else ap_design_level
design_l = ap_design_level_w1 if 'W1' in bt else ap_design_level # type: ignore

for year in sorted(design_l.keys()):
if year_built <= year:
Expand Down Expand Up @@ -704,7 +704,7 @@ def auto_populate(aim): # noqa: C901
comp_gf = pd.DataFrame( # noqa
{f'HRD.GF.{rt[3:]}':[ 'ea', 1, 1, 1, 'N/A']}, # noqa
index = [ 'Units','Location','Direction','Theta_0','Family'] # noqa
).T # noqa
).T
# fmt: on

comp = pd.concat([comp, comp_gf], axis=0)
Expand Down

0 comments on commit 860e9d6

Please sign in to comment.