def test_LNavMessage_getDataBits0(): ''' GPS LNav message: fetch data bits ''' dataAll_idx = numpy.linspace(0, 299, 300, dtype=numpy.long) msg = LNavMessage(1, tow0=1, n_msg=1, n_prefixBits=30) bits = msg.getDataBits(dataAll_idx) assert isinstance(bits, numpy.ndarray) assert bits.shape == (300, ) assert (bits == msg.messageBits[:300]).all()
def test_LNavMessage_getDataBits0(): ''' GPS LNav message: fetch data bits ''' dataAll_idx = numpy.linspace(0, 299, 300, dtype=numpy.long) msg = LNavMessage(1, tow0=1, n_msg=1, n_prefixBits=30) bits = msg.getDataBits(dataAll_idx) assert isinstance(bits, numpy.ndarray) assert bits.shape == (300,) assert (bits == msg.messageBits[:300]).all()