def __init__(self, arg=None, **kwargs):
for attr in ('<STR_LIT>', '<STR_LIT>', '<STR_LIT:width>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>setattr(self, attr, None)<EOL><DEDENT>if arg is None:<EOL><INDENT>self._fromdata([], **kwargs)<EOL><DEDENT>elif isinstance(arg, basestring):<EOL><INDENT>self._fh = open(arg, '<STR_LIT:rb>')<EOL>self._filename = arg<EOL>self._fromfile(self._fh, **kwargs)<EOL><DEDENT>elif hasattr(arg, '<STR_LIT>'):<EOL><INDENT>self._fromfile(arg, **kwargs)<EOL>self._fh = arg<EOL><DEDENT>else:<EOL><INDENT>self._fromdata(arg, **kwargs)<EOL><DEDENT>
Initialize instance from filename, open file, or numpy array.