Skip to content

Commit 1fa1e75

Browse files
committed
Refactor out mutable default args, close #18
1 parent 1ce1f97 commit 1fa1e75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dscim/diagnostics/damage_function.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def damage_function(
7070
rho,
7171
year=2097,
7272
hue_vars="ssp",
73-
recipes=["adding_up", "risk_aversion", "equity"],
73+
recipes=("adding_up", "risk_aversion", "equity"),
7474
scale=10**12,
7575
x_lim=(-np.inf, np.inf),
7676
y_lim=(-np.inf, np.inf),
@@ -97,7 +97,7 @@ def damage_function(
9797
Type of discounting. Can be 'constant', 'ramsey', or 'wr'.
9898
year: int
9999
Year of damage function to be plotted.
100-
recipes : list of str
100+
recipes : sequence of str
101101
Recipe types to be plotted. Can be 'adding_up', 'risk_aversion', 'equity'
102102
scale : int
103103
Units of dollars for axis. ie., if 10**12 is passed, y axis will be in trillions.

0 commit comments

Comments
 (0)