It looks like the Python OMX API is using the __version__ property rather than the __omx_version__ property when writing new files:
import openmatrix as omx
source = "test_file.omx"
target = "test_file_out.omx"
with omx.open_file(source, mode='r') as reader, omx.open_file(target, mode='w') as writer:
print('Source Version', reader.version())
print('Target Version', writer.version())
yields:
>> Source Version [b'0.2']
>> Target Version 0.3.3
This is causing issue with other OMX libraries (Java in my case) which are asserting the OMX version to be 0.2.
Also, it looks like the __omx_version__ global variable is not even defined in the module, contrary to what the Wiki says:
omx.__omx_version__
>>AttributeError: module 'openmatrix' has no attribute '__omx_version__'
It looks like the Python OMX API is using the
__version__property rather than the__omx_version__property when writing new files:yields:
This is causing issue with other OMX libraries (Java in my case) which are asserting the OMX version to be
0.2.Also, it looks like the
__omx_version__global variable is not even defined in the module, contrary to what the Wiki says: