Skip to content

Commit d0bd0d8

Browse files
chore: pin scipy version (#64)
1 parent 02409f1 commit d0bd0d8

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ classifiers = [
2323
dependencies = [
2424
"numpy<2.0.0",
2525
"pandas",
26-
"scipy",
26+
"scipy<1.14.0",
2727
"pyarrow"
2828
]
2929

src/waveresponse/_standardized1d.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -556,9 +556,7 @@ def _spectrum(self, omega, hs, tp):
556556
A_secondary = (3.26 / 16.0) * hs_secondary**2 * omega_p_secondary**3
557557
B_secondary = omega_p_secondary**4
558558

559-
spectrum_secondary = (
560-
A_secondary / omega**4 * np.exp(-B_secondary / omega**4)
561-
)
559+
spectrum_secondary = A_secondary / omega**4 * np.exp(-B_secondary / omega**4)
562560

563561
return spectrum_primary + spectrum_secondary
564562

tests/test_core.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3360,9 +3360,7 @@ def test_moment_m2_rads(self):
33603360

33613361
m_out = spectrum.moment(2, freq_hz=False)
33623362

3363-
m_expect = (
3364-
(1.0 / 3.0) * (0.0 - 360.0) * (f0**3 - f1**3) * (2.0 * np.pi) ** 2
3365-
)
3363+
m_expect = (1.0 / 3.0) * (0.0 - 360.0) * (f0**3 - f1**3) * (2.0 * np.pi) ** 2
33663364

33673365
# not exactly same due to error in trapezoid for higher order functions
33683366
assert m_out == pytest.approx(m_expect, rel=0.1)

0 commit comments

Comments
 (0)