Module Expr Str Import alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias alias alias alias alias alias ImportFrom alias ImportFrom alias alias alias FunctionDef arguments args defaults body Expr Yield Num decorator_list NameLoad FunctionDef arguments args defaults body Expr Yield Num decorator_list NameLoad FunctionDef arguments args defaults body Expr Yield Num decorator_list NameLoad FunctionDef arguments args defaults body Expr Yield Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Yield Call NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Yield Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Yield Call NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Yield Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call NameLoad NameLoad Call AttributeLoad NameLoad attr keyword Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Num AugAssignMult SubscriptStore NameLoad ExtSlice Slice Slice Num Num NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad Call AttributeLoad NameLoad attr Num NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body AugAssignMult SubscriptStore NameLoad ExtSlice Slice Slice Num Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr TupleLoad Num Assert CompareLt SubscriptLoad NameLoad Index Num Num Assert CompareGt SubscriptLoad NameLoad Index Num Num decorator_list FunctionDef arguments args NameParam defaults body AugAssignMult NameStore Num AugAssignMult SubscriptStore NameLoad ExtSlice Slice Index ListLoad Num Num Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Call NameLoad NameLoad Assert Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad Num Num decorator_list FunctionDef arguments args NameParam NameParam defaults body AugAssignMult NameStore Num AugAssignMult NameStore Num AugAssignMult SubscriptStore NameLoad ExtSlice Slice Index Num Slice Num AugAssignMult SubscriptStore NameLoad ExtSlice Slice Index Num Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assert Call AttributeLoad NameLoad attr CompareGtE NameLoad Num Assert CompareEq AttributeLoad NameLoad attr TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Num Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpAdd Call NameLoad NameLoad NameLoad Assign NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index BinOpFloorDiv NameLoad Num Num Assign NameStore BinOpMult Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list
N/A N/A Tests of cluster statistics. N/A numpy np numpy.testing assert_array_equal ae numpy.testing assert_allclose ac pytest yield_fixture clusters mean get_unmasked_channels get_mean_probe_position get_sorted_main_channels get_mean_masked_features_distance get_waveform_amplitude phy.electrode.mea staggered_positions phy.io.mock artificial_features artificial_masks artificial_waveforms n_channels N/A N/A N/A N/A N/A N/A 28 N/A yield_fixture n_spikes N/A N/A N/A N/A N/A N/A 50 N/A yield_fixture n_samples N/A N/A N/A N/A N/A N/A 40 N/A yield_fixture n_features_per_channel N/A N/A N/A N/A N/A N/A 4 N/A yield_fixture features N/A N/A n_spikes n_channels n_features_per_channel N/A N/A N/A N/A N/A artificial_features n_spikes n_channels n_features_per_channel N/A yield_fixture masks N/A N/A n_spikes n_channels N/A N/A N/A N/A N/A artificial_masks n_spikes n_channels N/A yield_fixture waveforms N/A N/A n_spikes n_samples n_channels N/A N/A N/A N/A N/A artificial_waveforms n_spikes n_samples n_channels N/A yield_fixture site_positions N/A N/A n_channels N/A N/A N/A N/A N/A staggered_positions n_channels N/A yield_fixture test_mean N/A N/A features n_channels n_features_per_channel N/A N/A N/A mf N/A mean features N/A N/A N/A mf shape N/A n_channels n_features_per_channel N/A N/A ae mf N/A N/A features mean axis 0 N/A test_unmasked_channels N/A N/A masks n_channels N/A N/A N/A threshold 0.05 N/A N/A masks N/A N/A N/A 1 2 threshold N/A mean_masks N/A mean masks N/A channels N/A get_unmasked_channels mean_masks threshold N/A N/A ae channels N/A N/A np arange 0 n_channels 2 N/A test_mean_probe_position N/A N/A masks site_positions N/A N/A N/A N/A masks N/A N/A N/A 2 0.05 N/A mean_masks N/A mean masks N/A mean_pos N/A get_mean_probe_position mean_masks site_positions N/A N/A N/A mean_pos shape N/A 2 N/A N/A N/A mean_pos N/A 0 0 N/A N/A N/A mean_pos N/A 1 0 N/A test_sorted_main_channels N/A N/A masks N/A N/A N/A masks 0.05 N/A N/A masks N/A N/A N/A N/A 5 7 20 N/A mean_masks N/A mean masks N/A channels N/A get_sorted_main_channels mean_masks N/A get_unmasked_channels mean_masks N/A N/A N/A np all N/A N/A np in1d channels N/A 5 7 N/A test_waveform_amplitude N/A N/A masks waveforms N/A N/A N/A waveforms 0.1 N/A masks 0.1 N/A N/A waveforms N/A N/A N/A 10 N/A 10 N/A N/A masks N/A N/A N/A 10 10 N/A mean_waveforms N/A mean waveforms N/A mean_masks N/A mean masks N/A amplitude N/A get_waveform_amplitude mean_masks mean_waveforms N/A N/A N/A np all N/A amplitude 0 N/A N/A N/A amplitude shape N/A N/A N/A mean_waveforms shape N/A 1 N/A test_mean_masked_features_distance N/A N/A features n_channels n_features_per_channel N/A N/A N/A shift 10.0 N/A f0 N/A mean features N/A f1 N/A N/A mean features shift N/A m0 m1 N/A N/A np zeros n_channels N/A N/A m0 N/A N/A n_channels 2 1 N/A d_expected N/A N/A N/A np sqrt n_features_per_channel shift N/A d_computed N/A get_mean_masked_features_distance f0 f1 m0 m1 n_features_per_channel N/A N/A ac d_expected d_computed N/A