Skip to content

Commit 1e3cac9

Browse files
authored
Add test for missing lines, make magic numbers customisable (#73)
1 parent a17e92a commit 1e3cac9

File tree

7 files changed

+621
-594
lines changed

7 files changed

+621
-594
lines changed

openjpeg/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""Set package shortcuts."""
22

3-
from ._version import __version__
4-
from .utils import decode, decode_pixel_data, get_parameters
3+
from ._version import __version__ # noqa: F401
4+
from .utils import decode, decode_pixel_data, get_parameters # noqa: F401

openjpeg/_openjpeg.c

Lines changed: 175 additions & 165 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openjpeg/tests/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
# Add the testing data to openjpeg (if available)
44
try:
55
import ljdata as _data
6-
globals()['data'] = _data
6+
7+
globals()["data"] = _data
78
# Add to cache - needed for pytest
8-
sys.modules['openjpeg.data'] = _data
9+
sys.modules["openjpeg.data"] = _data
910
except ImportError:
1011
pass

0 commit comments

Comments
 (0)