Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
adjacency_radius=p['adjacency_radius'],
clip_size=p['clip_size'],
detect_threshold=p['detect_threshold'],
detect_interval=p['detect_interval']
)
# Curate
if p['noise_overlap_threshold'] is not None and p['curation'] is True:
print('Curating')
sorting = ml_ms4alg.mountainsort4_curation(
recording=recording,
sorting=sorting,
noise_overlap_threshold=p['noise_overlap_threshold']
)
se.MdaSortingExtractor.write_sorting(sorting, str(output_folder / 'firings.mda'))