Skip to content

Commit

Permalink
Update manage_neuroconv.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rly authored Nov 13, 2024
1 parent 454c29f commit f3d6358
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pyflask/manageNeuroconv/manage_neuroconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f3d6358

Please sign in to comment.