Added monkey-patched fixture for openjpeg version.
This commit is contained in:
parent
93270a0d50
commit
6581540f34
1 changed files with 8 additions and 0 deletions
|
|
@ -5,6 +5,14 @@ import numpy as np
|
||||||
|
|
||||||
import glymur
|
import glymur
|
||||||
|
|
||||||
|
# Need to know the openjpeg version. If openjpeg is not installed, we use
|
||||||
|
# '0.0.0'
|
||||||
|
OPENJPEG_VERSION = '0.0.0'
|
||||||
|
if glymur.lib.openjpeg.OPENJPEG is not None:
|
||||||
|
OPENJPEG_VERSION = glymur.lib.openjpeg.version()
|
||||||
|
|
||||||
|
# Need to know of the libopenjp2 version is the official 2.0.0 release and NOT
|
||||||
|
# the 2.0+ development version.
|
||||||
OPENJP2_IS_V2_OFFICIAL = False
|
OPENJP2_IS_V2_OFFICIAL = False
|
||||||
if glymur.lib.openjp2.OPENJP2 is not None:
|
if glymur.lib.openjp2.OPENJP2 is not None:
|
||||||
if not hasattr(glymur.lib.openjp2.OPENJP2,
|
if not hasattr(glymur.lib.openjp2.OPENJP2,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue