From 79c88b9ca568b289d006cfdda447b93d798bd7cc Mon Sep 17 00:00:00 2001 From: CodyCBakerPhD Date: Tue, 3 Oct 2023 07:22:10 -0400 Subject: [PATCH] remove SpikeGLXLFP --- pyflask/manageNeuroconv/manage_neuroconv.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pyflask/manageNeuroconv/manage_neuroconv.py b/pyflask/manageNeuroconv/manage_neuroconv.py index af15b1ab0..4ad7ae95c 100644 --- a/pyflask/manageNeuroconv/manage_neuroconv.py +++ b/pyflask/manageNeuroconv/manage_neuroconv.py @@ -132,10 +132,11 @@ def get_all_interface_info() -> dict: """Format an information structure to be used for selecting interfaces based on modality and technique.""" from neuroconv.datainterfaces import interface_list - # Hard coded for now - eventual goal will be to import this from NeuroConv - interfaces_to_load = { - interface.__name__.replace("Interface", ""): interface for interface in interface_list - } # dict(SpikeGLX=SpikeGLXRecordingInterface, Phy=PhySortingInterface) + exclude_interfaces_from_selection = ["SpikeGLXLFP"] # Should have 'interface' stripped from name + + interfaces_to_load = {interface.__name__.replace("Interface", ""): interface for interface in interface_list} + for excluded_interface in exclude_interfaces_from_selection: + interfaces_to_load.pop(excluded_interface) return { interface.__name__: {