MCPcopy Create free account
hub / github.com/NVlabs/SPADE / uint82bin

Function uint82bin

util/util.py:217–219  ·  view source on GitHub ↗

returns the binary of integer n, count refers to amount of bits

(n, count=8)

Source from the content-addressed store, hash-verified

215# Modified so it complies with the Citscape label map colors
216###############################################################################
217def uint82bin(n, count=8):
218 """returns the binary of integer n, count refers to amount of bits"""
219 return ''.join([str((n >> y) & 1) for y in range(count - 1, -1, -1)])
220
221
222def labelcolormap(N):

Callers 1

labelcolormapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected