btel / SpikeSort

Spike sorting library implemented in Python/NumPy/PyTables
http://spike-sort.readthedocs.org
Other
27 stars 12 forks source link

Support for optional components #82

Closed btel closed 11 years ago

btel commented 11 years ago

Some components, such as PlotSpikes, require labels source component, so they can not be used to plot spikes if no clustering is done. Therefore we have to redefine such components twice (with and without spikes).

In order to promote code reuse, it might be better to implement OptionalFeature class, which would test if a feature is available and if not it would simply return None. This way in the component implementation, we could change the behaviour depending on presence of the feature.

belevtsoff commented 11 years ago

created branch "optional_features"