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 With Call AttributeLoad NameLoad attr NameLoad NameStore body Assign NameStore Call AttributeLoad SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Index Num attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd SubscriptLoad NameLoad Slice Num Str Assign NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore SubscriptLoad NameLoad Index Str Assign NameStore ListComp Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index TupleLoad Num Num attr comprehension NameStore SubscriptLoad NameLoad Index Str Assign NameStore ListComp SubscriptLoad NameLoad Index TupleLoad Num Num comprehension NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ListLoad Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ListLoad Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore ListComp Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index TupleLoad Num Num attr comprehension NameStore SubscriptLoad NameLoad Index Str Assign NameStore ListComp Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index TupleLoad Num Num attr comprehension NameStore SubscriptLoad NameLoad Index Str Assign NameStore ListComp ListComp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad comprehension NameStore NameLoad Assign NameStore ListComp ListComp NameLoad comprehension NameStore NameLoad comprehension NameStore NameLoad Assign NameStore ListComp Call NameLoad Call NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad For TupleStore NameStore NameStore NameStore NameStore NameLoad body Assign NameStore Call NameLoad keyword BinOpMult NameLoad AttributeLoad NameLoad attr keyword BinOpMult NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword BinOpMult Num AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad 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 Assign NameStore ListLoad Str Str Str Str Str Str For TupleStore NameStore NameStore Call NameLoad NameLoad body If NameLoad body AugAssignAdd SubscriptStore NameLoad Index NameLoad BinOpMod Str 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 NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If UnaryOpNot NameLoad body Continue Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr 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.brainwaredamio
 __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 AnalogSignal Block RecordingChannel RecordingChannelGroup Segment neo.io BrainwareDamIO 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_dam N/A N/A filename N/A N/A N/A Load an dam 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 BrainwareDamIO to
    make sure BrainwareDamIO is working properly

    block = proc_dam(filename)

    filename: The file name of the numpy file to load.  It should end with
    '*_dam_py?.npz'. This will be converted to a neo 'file_origin' property
    with the value '*.dam', 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_dam_py2.npz'
             dam file name = 'file1.dam'
     N/A N/A N/A np load filename damobj N/A N/A damfile N/A N/A N/A N/A N/A N/A damobj items N/A 0 N/A 1 flatten N/A filename N/A N/A N/A os path basename N/A N/A filename N/A -12 .dam N/A signals N/A N/A N/A res flatten N/A res N/A damfile N/A signal N/A stimIndexes N/A N/A int N/A N/A N/A res N/A N/A 0 0 tolist N/A res N/A damfile N/A stimIndex N/A timestamps N/A N/A res N/A N/A 0 0 N/A res N/A damfile N/A timestamp N/A block N/A Block file_origin filename N/A rcg N/A RecordingChannelGroup file_origin filename N/A chan N/A RecordingChannel file_origin filename index 0 name Chan1 N/A N/A rcg channel_indexes N/A N/A np array N/A 1 N/A N/A rcg channel_names N/A N/A np array N/A Chan1 dtype S N/A N/A N/A N/A block recordingchannelgroups append rcg N/A N/A N/A N/A rcg recordingchannels append chan N/A params N/A N/A N/A N/A N/A res N/A params N/A N/A 0 0 flatten N/A res N/A damfile N/A stim N/A values N/A N/A N/A N/A N/A res N/A values N/A N/A 0 0 flatten N/A res N/A damfile N/A stim N/A params N/A N/A N/A res1 N/A 0 N/A res1 res N/A res params N/A values N/A N/A res1 N/A res1 res N/A res values N/A stims N/A N/A dict N/A zip param value N/A N/A param value N/A zip params values N/A fulldam N/A zip stimIndexes timestamps signals stims N/A N/A stimIndex timestamp signal stim fulldam N/A N/A sig N/A AnalogSignal signal N/A signal N/A pq mV t_start N/A timestamp N/A pq d file_origin filename sampling_period N/A 1.0 N/A pq s N/A segment N/A Segment file_origin filename index stimIndex stim N/A N/A segment analogsignals N/A sig 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 BrainwareDamIOTestCase N/A BaseTestIO N/A unittest TestCase N/A N/A 
    Unit test testcase for neo.io.BrainwareDamIO
     N/A ioclass BrainwareDamIO N/A read_and_write_is_bijective False N/A files_to_test N/A block_300ms_4rep_1clust_part_ch1.dam interleaved_500ms_5rep_ch2.dam long_170s_1rep_1clust_ch2.dam multi_500ms_mulitrep_ch1.dam random_500ms_12rep_noclust_part_ch2.dam sequence_500ms_5rep_ch2.dam N/A files_to_compare N/A block_300ms_4rep_1clust_part_ch1 interleaved_500ms_5rep_ch2 multi_500ms_mulitrep_ch1 random_500ms_12rep_noclust_part_ch2 sequence_500ms_5rep_ch2 N/A N/A i fname N/A enumerate files_to_compare N/A N/A fname N/A N/A N/A files_to_compare N/A i N/A _dam_py%s.npz PY_VER 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 filename refname N/A zip N/A self files_to_test N/A self files_to_compare N/A N/A N/A refname N/A N/A N/A obj N/A N/A self read_file filename filename N/A refobj N/A proc_dam N/A N/A self get_filename_path refname 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