This describes how TotalDepth.LIS handles representation codes, it covers several modules.
There is a top level module RepCode
that imports all sub-modules and provides some fundamental definitions. Sub-modules pRepCode
and cRepCOde
provide alternative implementations in Python or Cython.
This provides the main interface to Representation Code processing as well as some fundamental definitions.
This module is the top level module that imports other sub-modules implemented in Python, Cython or C/C++. The Cython implementations take precedence as this module imports the sub-modules thus:
from TotalDepth.LIS.core.pRepCode import *
from TotalDepth.LIS.core.cRepCode import *
It is designed to use thus:
from TotalDepth.LIS.core import RepCode
TotalDepth.LIS.core.RepCode
This contains Python implementations.
This module is not designed to imported directly, use RepCode
instead. This module can be imported only for test purposes thus:
from TotalDepth.LIS.core import pRepCode
TotalDepth.LIS.core.pRepCode
This contains Cython implementations. By the import mechanism used be RepCode
these implementations take precedence over the implementations in pRepCode
.
This module is not designed to imported directly, use RepCode
instead. This module can be imported only for test purposes thus:
from TotalDepth.LIS.core import cRepCode
TotalDepth.LIS.core.cRepCode
The unit tests are in test/TestRepCode.py
and test/TestRepCode68.py
.