Skip to content

Commit b629c6c

Browse files
committed
get the correct client type; add a test
1 parent 8c22d44 commit b629c6c

File tree

45 files changed

+88
-75
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+88
-75
lines changed

pyincore/analyses/bridgedamage/bridgedamage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class BridgeDamage(BaseAnalysis):
1818
"""Computes bridge structural damage for earthquake, tsunami, tornado, and hurricane hazards.
1919
2020
Args:
21-
incore_client (IncoreClient): Service authentication.
21+
incore_client (Union[IncoreClient, IncoreInternalClient]): Service authentication.
2222
2323
"""
2424

pyincore/analyses/buildingclusterrecovery/buildingclusterrecovery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class BuildingClusterRecovery(BaseAnalysis):
2222
to calculate building’s initial functionality loss.
2323
2424
Args:
25-
incore_client (IncoreClient): Service authentication.
25+
incore_client (Union[IncoreClient, IncoreInternalClient]): Service authentication.
2626
2727
"""
2828

pyincore/analyses/buildingeconloss/buildingeconloss.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class BuildingEconLoss(BaseAnalysis):
1818
year and year of interest (current, date of hazard etc.)
1919
2020
Args:
21-
incore_client (IncoreClient): Service authentication.
21+
incore_client (Union[IncoreClient, IncoreInternalClient]): Service authentication.
2222
2323
"""
2424

pyincore/analyses/buildingfunctionality/buildingfunctionality.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class BuildingFunctionality(BaseAnalysis):
1919
functional, buildings are considered to be able to receive electric power.
2020
2121
Args:
22-
incore_client (IncoreClient): Service authentication.
22+
incore_client (Union[IncoreClient, IncoreInternalClient]): Service authentication.
2323
2424
"""
2525

pyincore/analyses/buildingnonstructuraldamage/buildingnonstructuraldamage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class BuildingNonStructDamage(BaseAnalysis):
2020
"""Computes non-structural structural building damage for an earthquake hazard.
2121
2222
Args:
23-
incore_client (IncoreClient): Service authentication.
23+
incore_client (Union[IncoreClient, IncoreInternalClient]): Service authentication.
2424
2525
"""
2626

pyincore/analyses/buildingstructuraldamage/buildingstructuraldamage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class BuildingStructuralDamage(BaseAnalysis):
2525
different hazard type such as earthquake, tsunami, and tornado.
2626
2727
Args:
28-
incore_client (IncoreClient): Service authentication.
28+
incore_client (Union[IncoreClient, IncoreInternalClient]): Service authentication.
2929
3030
"""
3131

pyincore/analyses/buyoutdecision/buyoutdecision.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class BuyoutDecision(BaseAnalysis):
1313
"""A framework to select households for buyout based on past and future flood damaged.
1414
1515
Args:
16-
incore_client(IncoreClient): Service authentication.
16+
incore_client(Union[IncoreClient, IncoreInternalClient]): Service authentication.
1717
1818
"""
1919

pyincore/analyses/capitalshocks/capitalshocks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class CapitalShocks(BaseAnalysis):
1313
before the natural disaster."
1414
1515
Args:
16-
incore_client (IncoreClient): Service authentication.
16+
incore_client (Union[IncoreClient, IncoreInternalClient]): Service authentication.
1717
1818
"""
1919

pyincore/analyses/combinedwindwavesurgebuildingdamage/combinedwindwavesurgebuildingdamage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class CombinedWindWaveSurgeBuildingDamage(BaseAnalysis):
1414
and uses the maximum damage probabilities from the 3 damages to determine overall damage
1515
1616
Args:
17-
incore_client (IncoreClient): Service authentication.
17+
incore_client (Union[IncoreClient, IncoreInternalClient]): Service authentication.
1818
"""
1919

2020
def __init__(self, incore_client):

pyincore/analyses/combinedwindwavesurgebuildingloss/combinedwindwavesurgebuildingloss.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class CombinedWindWaveSurgeBuildingLoss(BaseAnalysis):
2323
147. 04021185. 10.1061/(ASCE)ST.1943-541X.0003144.
2424
2525
Args:
26-
incore_client (IncoreClient): Service authentication.
26+
incore_client (Union[IncoreClient, IncoreInternalClient]): Service authentication.
2727
"""
2828

2929
def __init__(self, incore_client):

0 commit comments

Comments
 (0)