INM-6 / python-neo

Neo is a package for representing electrophysiology data in Python, together with support for reading a wide range of neurophysiology file formats
http://packages.python.org/neo/
BSD 3-Clause "New" or "Revised" License
3 stars 10 forks source link

In Block.filter(), the option object='SpikeTrain' is case sensivtive #13

Open mdenker opened 9 years ago

mdenker commented 9 years ago

It should also accept, e.g., 'spiketrain' or 'SpiKETRain'.

lphan commented 9 years ago

After some changes in implementation, the following tests worked :

blk.filter(a=5, objects=AnalogSignal)  # worked
blk.filter(a=5, objects=['AnalogSignal'])  # worked
blk.filter(a=5, objects='AnalogSignal')  # worked
blk.filter(a=5, objects='ANALogSIGnal')  # worked
blk.filter(a=5, objects='analogsignal')  # worked