Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1281)  |  Call(1196)  |  Derive(0)  |  Import(85)

src/n/o/noaadata-py-0.45/ais/exampleParser.py   noaadata-py(Download)
import sys
from decimal import Decimal
from BitVector import BitVector
 
import binary
 
	### FIELD: dac (type=uint)   REQUIRED CONSTANT FIELD
	bvList.append(binary.setBitVectorSize(BitVector(intVal=366)))
 
	### FIELD: unavail_uint (type=uint)
	if 'unavail_uint' in params: 		bvList.append(binary.setBitVectorSize(BitVector(intVal=param[unavail_uint]),2))
	else: bvList.append(binary.setBitVectorSize(BitVector(intVal=3),2))
 
	### FIELD: uint (type=uint)
	if 'uint' in params: 		bvList.append(binary.setBitVectorSize(BitVector(intVal=param[uint]),2))

src/n/o/noaadata-HEAD/ais/exampleParser.py   noaadata(Download)
import sys
from decimal import Decimal
from BitVector import BitVector
 
import binary
 
	### FIELD: dac (type=uint)   REQUIRED CONSTANT FIELD
	bvList.append(binary.setBitVectorSize(BitVector(intVal=366)))
 
	### FIELD: unavail_uint (type=uint)
	if 'unavail_uint' in params: 		bvList.append(binary.setBitVectorSize(BitVector(intVal=param[unavail_uint]),2))
	else: bvList.append(binary.setBitVectorSize(BitVector(intVal=3),2))
 
	### FIELD: uint (type=uint)
	if 'uint' in params: 		bvList.append(binary.setBitVectorSize(BitVector(intVal=param[uint]),2))

src/n/o/noaadata-py-0.45/ais/aisstring.py   noaadata-py(Download)
 
# External libs
from BitVector import BitVector
 
# Local
 
characterBits={}
characterBits['@']=binary.setBitVectorSize(BitVector(intVal=0),6)
characterBits['A']=binary.setBitVectorSize(BitVector(intVal=1),6)
characterBits['B']=binary.setBitVectorSize(BitVector(intVal=2),6)
characterBits['C']=binary.setBitVectorSize(BitVector(intVal=3),6)

src/n/o/noaadata-HEAD/ais/aisstring.py   noaadata(Download)
 
# External libs
from BitVector import BitVector
 
# Local
 
characterBits={}
characterBits['@']=binary.setBitVectorSize(BitVector(intVal=0),6)
characterBits['A']=binary.setBitVectorSize(BitVector(intVal=1),6)
characterBits['B']=binary.setBitVectorSize(BitVector(intVal=2),6)
characterBits['C']=binary.setBitVectorSize(BitVector(intVal=3),6)

src/n/o/noaadata-py-0.45/ais/imo_001_11_handcoded.py   noaadata-py(Download)
import sys
from decimal import Decimal
from BitVector import BitVector
 
import binary, aisstring
 
# FIX: check to see if these will be needed
TrueBV  = BitVector(bitstring="1")
"Why always rebuild the True bit?  This should speed things up a bunch"
FalseBV = BitVector(bitstring="0")
 
	bvList = []
	bvList.append(binary.setBitVectorSize(BitVector(intVal=8),6))
	if 'RepeatIndicator' in params:
		bvList.append(binary.setBitVectorSize(BitVector(intVal=params['RepeatIndicator']),2))

src/n/o/noaadata-py-0.45/ais/imo_001_11.py   noaadata-py(Download)
import sys
from decimal import Decimal
from BitVector import BitVector
 
import binary, aisstring
 
# FIX: check to see if these will be needed
TrueBV  = BitVector(bitstring="1")
"Why always rebuild the True bit?  This should speed things up a bunch"
FalseBV = BitVector(bitstring="0")
 
	bvList = []
	bvList.append(binary.setBitVectorSize(BitVector(intVal=8),6))
	if 'RepeatIndicator' in params:
		bvList.append(binary.setBitVectorSize(BitVector(intVal=params['RepeatIndicator']),2))

src/n/o/noaadata-py-0.45/ais/ais_msg_20.py   noaadata-py(Download)
import sys
from decimal import Decimal
from BitVector import BitVector
 
import binary, aisstring
 
# FIX: check to see if these will be needed
TrueBV  = BitVector(bitstring="1")
"Why always rebuild the True bit?  This should speed things up a bunch"
FalseBV = BitVector(bitstring="0")
 
	bvList = []
	bvList.append(binary.setBitVectorSize(BitVector(intVal=20),6))
	if 'RepeatIndicator' in params:
		bvList.append(binary.setBitVectorSize(BitVector(intVal=params['RepeatIndicator']),2))

src/n/o/noaadata-py-0.45/ais/imo_001_14.py   noaadata-py(Download)
import sys
from decimal import Decimal
from BitVector import BitVector
 
import binary, aisstring
 
# FIX: check to see if these will be needed
TrueBV  = BitVector(bitstring="1")
"Why always rebuild the True bit?  This should speed things up a bunch"
FalseBV = BitVector(bitstring="0")
 
	bvList = []
	bvList.append(binary.setBitVectorSize(BitVector(intVal=6),6))
	if 'RepeatIndicator' in params:
		bvList.append(binary.setBitVectorSize(BitVector(intVal=params['RepeatIndicator']),2))

src/n/o/noaadata-py-0.45/ais/whalenotice2.py   noaadata-py(Download)
import sys
from decimal import Decimal
from BitVector import BitVector
 
import binary, aisstring
 
# FIX: check to see if these will be needed
TrueBV  = BitVector(bitstring="1")
"Why always rebuild the True bit?  This should speed things up a bunch"
FalseBV = BitVector(bitstring="0")
 
	bvList = []
	bvList.append(binary.setBitVectorSize(BitVector(intVal=8),6))
	if 'RepeatIndicator' in params:
		bvList.append(binary.setBitVectorSize(BitVector(intVal=params['RepeatIndicator']),2))

src/n/o/noaadata-py-0.45/ais/ais_msg_5.py   noaadata-py(Download)
import sys
from decimal import Decimal
from BitVector import BitVector
 
import binary, aisstring
 
# FIX: check to see if these will be needed
TrueBV  = BitVector(bitstring="1")
"Why always rebuild the True bit?  This should speed things up a bunch"
FalseBV = BitVector(bitstring="0")
 
	bvList = []
	bvList.append(binary.setBitVectorSize(BitVector(intVal=5),6))
	if 'RepeatIndicator' in params:
		bvList.append(binary.setBitVectorSize(BitVector(intVal=params['RepeatIndicator']),2))

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next