Skip to content

Commit 13bc232

Browse files
committed
Repair NumPy 2 pairing-null integration compatibility
1 parent 01649de commit 13bc232

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎dark_sector_architecture/qualification/modal_pairing_null.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def wasserstein_1d(x: np.ndarray, y: np.ndarray) -> float:
2727
qb = np.linspace(0.0, 1.0, len(b), endpoint=True)
2828
ai = np.interp(q, qa, a)
2929
bi = np.interp(q, qb, b)
30-
return float(np.trapz(np.abs(ai - bi), q))
30+
return float(np.trapezoid(np.abs(ai - bi), q))
3131

3232

3333
def normalized_commutator_field(

0 commit comments

Comments
 (0)