Skip to content

Commit ad83072

Browse files
committed
Unpack encoding_model dict in test_gmm_blocking_parity
Changed the test to unpack encoding_model using **encoding_model instead of passing it as a positional argument. This ensures the function receives the correct keyword arguments from the encoding_model dictionary.
1 parent af6239c commit ad83072

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/non_local_detector/tests/test_clusterless_gmm_optimization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def test_gmm_blocking_parity(gmm_simulation_data):
102102
position,
103103
spike_times,
104104
spike_features,
105-
encoding_model,
105+
**encoding_model,
106106
is_local=False,
107107
spike_block_size=999999, # Effectively no blocking
108108
)
@@ -114,7 +114,7 @@ def test_gmm_blocking_parity(gmm_simulation_data):
114114
position,
115115
spike_times,
116116
spike_features,
117-
encoding_model,
117+
**encoding_model,
118118
is_local=False,
119119
spike_block_size=10, # Small blocks to test the mechanism
120120
)

0 commit comments

Comments
 (0)