btel / SpikeSort

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

add register function to base.py #61

Closed btel closed 12 years ago

btel commented 12 years ago

Currently adding component to feature broker uses lots of characters. In order to make it shorter, base.py should have a function with arguments as in base.features.Provide, but also returning the added component. As a result one could just call:

features = base.register("FeatureSource",  components.FeatureExtractor())

instead of:

base.features.Provide("FeatureSource",  components.FeatureExtractor())
features = base.features['FeatureSource']