Module Expr Str ImportFrom alias alias alias Import alias Import alias TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias Import alias identifier Import alias identifier ImportFrom alias alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd SubscriptLoad NameLoad Slice Num Str Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ListLoad keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ListLoad keyword Str Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TryExcept body With Call AttributeLoad NameLoad attr NameLoad NameStore body Assign NameStore Call AttributeLoad SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Index Num attr handlers ExceptHandler type NameLoad name NameStore body If CompareIn Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return NameLoad orelse Raise Assign NameStore ListComp Call AttributeLoad SubscriptLoad NameLoad Index TupleLoad Num Num attr comprehension NameStore SubscriptLoad NameLoad Index Str Assign NameStore ListComp Call AttributeLoad Call AttributeLoad NameLoad attr attr comprehension NameStore SubscriptLoad NameLoad Index Str Assign NameStore ListComp Call AttributeLoad SubscriptLoad NameLoad Index Str attr comprehension NameStore SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad For TupleStore NameStore NameStore NameStore NameLoad body For NameStore NameLoad body If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str orelse Assign NameStore ListLoad Assign NameStore ListComp BinOpMod Str NameLoad comprehension NameStore Call NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list ClassDef bases NameLoad AttributeLoad NameLoad attr body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore ListLoad Str Str Str Str Str Str Str Str Assign NameStore BinOpMod Str NameLoad Assign NameStore SubscriptLoad NameLoad Slice Assign NameStore ListLoad For NameStore NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num NameLoad Assign NameStore BinOpAdd NameLoad NameLoad FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword NameLoad body Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad TryExcept body Expr Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body AugAssignAdd AttributeStore NameLoad attr TupleLoad BinOpAdd Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Raise decorator_list FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore BinOpAdd SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad TryExcept body Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body AugAssignAdd AttributeStore NameLoad attr TupleLoad BinOpAdd Str NameLoad Raise decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A 
Tests of neo.io.brainwaref32io
 __future__ absolute_import division print_function N/A os.path N/A sys N/A N/A N/A unittest2 unittest N/A N/A N/A ImportError N/A N/A unittest N/A numpy np N/A quantities pq neo.core Block RecordingChannelGroup Segment SpikeTrain Unit neo.io BrainwareF32IO neo.test.iotest.common_io_test BaseTestIO neo.test.tools assert_same_sub_schema assert_neo_object_is_compliant neo.test.iotest.tools create_generic_reader N/A PY_VER N/A N/A sys version_info N/A 0 proc_f32 N/A N/A filename N/A N/A N/A Load an f32 file that has already been processed by the official matlab
    file converter.  That matlab data is saved to an m-file, which is then
    converted to a numpy '.npz' file.  This numpy file is the file actually
    loaded.  This function converts it to a neo block and returns the block.
    This block can be compared to the block produced by BrainwareF32IO to
    make sure BrainwareF32IO is working properly

    block = proc_f32(filename)

    filename: The file name of the numpy file to load.  It should end with
    '*_f32_py?.npz'. This will be converted to a neo 'file_origin' property
    with the value '*.f32', so the filename to compare should fit that pattern.
    'py?' should be 'py2' for the python 2 version of the numpy file or 'py3'
    for the python 3 version of the numpy file.

    example: filename = 'file1_f32_py2.npz'
             f32 file name = 'file1.f32'
     N/A filenameorig N/A N/A N/A os path basename N/A N/A filename N/A -12 .f32 N/A block N/A Block file_origin filenameorig N/A rcg N/A RecordingChannelGroup file_origin filenameorig N/A N/A rcg channel_indexes N/A N/A np array N/A dtype N/A np int N/A N/A rcg channel_names N/A N/A np array N/A dtype S N/A unit N/A Unit file_origin filenameorig N/A N/A N/A N/A block recordingchannelgroups append rcg N/A N/A N/A N/A rcg units append unit N/A N/A N/A N/A N/A np load filename f32obj N/A N/A f32file N/A N/A N/A N/A N/A N/A f32obj items N/A 0 N/A 1 flatten N/A N/A N/A IOError N/A exc N/A N/A N/A as a pickle N/A exc message N/A N/A N/A N/A block create_many_to_one_relationship N/A block N/A N/A N/A sweeplengths N/A N/A N/A N/A res N/A N/A 0 0 tolist N/A res N/A f32file N/A sweeplength N/A stims N/A N/A N/A N/A N/A res flatten tolist N/A res N/A f32file N/A stim N/A sweeps N/A N/A N/A N/A res N/A spikes flatten N/A res N/A f32file N/A sweep N/A res size N/A fullf32 N/A zip sweeplengths stims sweeps N/A N/A sweeplength stim sweep fullf32 N/A N/A trainpts sweep N/A N/A N/A trainpts size N/A N/A trainpts N/A N/A N/A N/A trainpts flatten astype float32 N/A N/A trainpts N/A N/A paramnames N/A N/A Param%s i N/A i N/A range N/A len stim N/A params N/A dict N/A zip paramnames stim N/A train N/A SpikeTrain trainpts units N/A pq ms t_start 0 t_stop sweeplength file_origin filenameorig N/A segment N/A Segment file_origin filenameorig params N/A N/A segment spiketrains N/A train N/A N/A N/A N/A unit spiketrains append train N/A N/A N/A N/A block segments append segment N/A N/A N/A block create_many_to_one_relationship N/A block N/A BrainwareF32IOTestCase N/A BaseTestIO N/A unittest TestCase N/A N/A 
    Unit test testcase for neo.io.BrainwareF32IO
     N/A ioclass BrainwareF32IO N/A read_and_write_is_bijective False N/A files_to_test N/A block_300ms_4rep_1clust_part_ch1.f32 block_500ms_5rep_empty_fullclust_ch1.f32 block_500ms_5rep_empty_partclust_ch1.f32 interleaved_500ms_5rep_ch2.f32 interleaved_500ms_5rep_nospikes_ch1.f32 multi_500ms_mulitrep_ch1.f32 random_500ms_12rep_noclust_part_ch2.f32 sequence_500ms_5rep_ch2.f32 N/A suffix N/A _f32_py%s.npz PY_VER N/A files_to_download N/A files_to_test N/A N/A files_to_compare N/A N/A fname files_to_test N/A N/A fname N/A N/A N/A N/A files_to_compare append N/A N/A N/A N/A N/A os path splitext fname N/A 0 suffix N/A files_to_download N/A files_to_test files_to_compare test_reading_same N/A N/A self N/A N/A N/A N/A ioobj path N/A N/A self iter_io_objects return_path True N/A N/A obj_reader_base N/A create_generic_reader ioobj target False N/A obj_reader_single N/A create_generic_reader ioobj N/A obj_base N/A obj_reader_base N/A obj_single N/A obj_reader_single N/A N/A N/A N/A assert_same_sub_schema obj_base obj_single N/A N/A N/A BaseException N/A exc N/A N/A N/A exc args N/A N/A from  N/A N/A N/A os path basename path N/A N/A test_against_reference N/A N/A self N/A N/A N/A N/A obj path N/A N/A self iter_objects return_path True N/A N/A filename N/A N/A N/A os path basename path N/A refpath N/A N/A N/A N/A N/A os path splitext path N/A 0 N/A self suffix N/A refobj N/A proc_f32 refpath N/A N/A N/A N/A assert_neo_object_is_compliant obj N/A N/A assert_neo_object_is_compliant refobj N/A N/A assert_same_sub_schema obj refobj N/A N/A N/A BaseException N/A exc N/A N/A N/A exc args N/A N/A from  filename N/A N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main