Skip to content

Commit

Permalink
Missed a mutable default.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidorme committed Sep 15, 2023
1 parent 0a07a2a commit 79e303b
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions pyrealm/constants/pmodel_const.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,18 +170,20 @@ class PModelConst(ConstantsClass):
(:math:`V_{\infty}`)."""

# Chen water density
chen_po: NDArray[np.float32] = np.array(
[
0.99983952,
6.788260e-5,
-9.08659e-6,
1.022130e-7,
-1.35439e-9,
1.471150e-11,
-1.11663e-13,
5.044070e-16,
-1.00659e-18,
]
chen_po: NDArray[np.float32] = field(
default_factory=lambda: np.array(
[
0.99983952,
6.788260e-5,
-9.08659e-6,
1.022130e-7,
-1.35439e-9,
1.471150e-11,
-1.11663e-13,
5.044070e-16,
-1.00659e-18,
]
)
)
r"""Polynomial relationship of water density at 1 atm (kg/m^3) with temperature."""

Expand Down

0 comments on commit 79e303b

Please sign in to comment.