Meta files for ap and lf streams from SpikeGLX are nearly identical, so I'm not certain why this line in extract_stream_info requires you to be reading an .ap.meta file instead of an .lf.meta file. I commented out and stream_kind == 'ap': in my local copy of neo and it read an .lf.meta file without issue. Both .lf.meta and .ap.meta files contain the only item being parsed from meta files by this function (imAiRangeMax).