Skip to content

Commit

Permalink
small fix to time_average_samples in coding
Browse files Browse the repository at this point in the history
  • Loading branch information
estefanysuarez committed Mar 27, 2023
1 parent 1698bf3 commit 7d0a32a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conn2res/coding.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def time_average_samples(seq_len, data, sample_weight, operation=None):
elif isinstance(data, np.ndarray):
data = [data]

if len(data) != len(data):
if len(data) != len(sample_weight):
raise ValueError(
'data and sample_weight should have the same number of assigned variables')

Expand Down

0 comments on commit 7d0a32a

Please sign in to comment.