Skip to content

Commit

Permalink
Add test for missing lines, make magic numbers customisable (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaramallion authored Jan 7, 2024
1 parent a17e92a commit 1e3cac9
Show file tree
Hide file tree
Showing 7 changed files with 621 additions and 594 deletions.
4 changes: 2 additions & 2 deletions openjpeg/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Set package shortcuts."""

from ._version import __version__
from .utils import decode, decode_pixel_data, get_parameters
from ._version import __version__ # noqa: F401
from .utils import decode, decode_pixel_data, get_parameters # noqa: F401
340 changes: 175 additions & 165 deletions openjpeg/_openjpeg.c

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions openjpeg/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
# Add the testing data to openjpeg (if available)
try:
import ljdata as _data
globals()['data'] = _data

globals()["data"] = _data
# Add to cache - needed for pytest
sys.modules['openjpeg.data'] = _data
sys.modules["openjpeg.data"] = _data
except ImportError:
pass
Loading

0 comments on commit 1e3cac9

Please sign in to comment.