pyCBD.util module

pyCBD.util.PYCBD_VERSION = '1.6'

The version of the CBD simulator.

pyCBD.util.PYTHON_VERSION = 3

The python version of the simulation.

pyCBD.util.enum(**enums)[source]

Helper function to construct simple enums.

pyCBD.util.hash64(number)[source]

Simple hashing function to convert the id() of an object to a short string. This hash is case-sensitive!

Parameters

number (int) – The number to convert.

pyCBD.util.unhash64(H)[source]

Reverse operation of the hash64() method.

Parameters

H (str) – The hash to convert back to a number.