From f3d6358a88ff042dac72f9861c3a60eb2e88b756 Mon Sep 17 00:00:00 2001 From: Ryan Ly Date: Wed, 13 Nov 2024 14:51:37 -0800 Subject: [PATCH] Update manage_neuroconv.py --- src/pyflask/manageNeuroconv/manage_neuroconv.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pyflask/manageNeuroconv/manage_neuroconv.py b/src/pyflask/manageNeuroconv/manage_neuroconv.py index e53d7c611..335febff9 100644 --- a/src/pyflask/manageNeuroconv/manage_neuroconv.py +++ b/src/pyflask/manageNeuroconv/manage_neuroconv.py @@ -1731,11 +1731,13 @@ def generate_test_data(output_path: str): with open(file=lf_meta_file_path, mode="w") as io: io.write(lf_meta_content) - # Make Phy folder + # Make Phy folder - see https://spikeinterface.readthedocs.io/en/latest/modules/exporters.html sorting_analyzer = spikeinterface.create_sorting_analyzer( sorting=sorting, recording=artificial_ap_band_in_uV, mode="memory", sparse=False ) - sorting_analyzer.compute("templates") + sorting_analyzer.compute(['random_spikes', 'waveforms', 'templates', 'noise_levels']) + sorting_analyzer.compute('spike_amplitudes') + sorting_analyzer.compute('principal_components', n_components = 5, mode="by_channel_local") spikeinterface.exporters.export_to_phy( sorting_analyzer=sorting_analyzer, output_folder=phy_output_folder, remove_if_exists=True, copy_binary=False