#NEWLINE# def load_file( self , filename = None ) : #NEWLINE# #INDENT# 'Loads an ns5 file, if not already done.\n\n        *.ns5 BINARY FILE FORMAT\n        The following information is contained in the first part of the header\n        file.\n        The size in bytes, the variable name, the data type, and the meaning are\n        given below. Everything is little-endian.\n\n        8B. File_Type_ID. char. Always "NEURALSG"\n        16B. File_Spec. char. Always "30 kS/s\x00"\n        4B. Period. uint32. Always 1.\n        4B. Channel_Count. uint32. Generally 32 or 34.\n        Channel_Count*4B. uint32. Channel_ID. One uint32 for each channel.\n\n        Thus the total length of the header is 8+16+4+4+Channel_Count*4.\n        Immediately after this header, the raw data begins.\n        Each sample is a 2B signed int16.\n        For our hardware, the conversion factor is 4096.0 / 2**16 mV/bit.\n        The samples for each channel are interleaved, so the first Channel_Count\n        samples correspond to the first sample from each channel, in the same\n        order as the channel id\'s in the header.\n\n        Variable names are consistent with the Neuroshare specification.\n        ' #NEWLINE# if ( self is not None ) : #NEWLINE# #INDENT# self . filename = filename #NEWLINE# #UNINDENT# self . load_header ( ) #NEWLINE# self . regenerate_memmap ( )