Skip to content

Commit ffb37fc

Browse files
committed
Update edf_weights.py
1 parent fd3e9b4 commit ffb37fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

aurora/transfer_function/weights/edf_weights.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,8 @@ def effective_degrees_of_freedom_weights(
279279
"""
280280
# Initialize the weights
281281
n_observations_initial = len(X.observation)
282+
if n_observations_initial == 0:
283+
raise ValueError("Zero observations in the input data.")
282284
weights = np.ones(n_observations_initial)
283285

284286
# validate num channels

0 commit comments

Comments
 (0)