Skip to content

Commit 6fa186e

Browse files
authored
Offload testing data to a separate package (#33)
1 parent 0999230 commit 6fa186e

File tree

141 files changed

+39
-7683
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+39
-7683
lines changed

build_tools/travis/install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,5 @@ else
6464
fi
6565

6666
python --version
67+
# Install the test data
68+
python -m pip install git+git://github.com/pydicom/pylibjpeg-data

pylibjpeg/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
11
"""Set package shortcuts."""
22

3+
import sys
4+
35
from ._version import __version__
46
from .libjpeg import decode, add_handler, remove_handler, get_parameters
57

8+
9+
# Add the testing data to pylibjpeg (if available)
10+
try:
11+
import data as _data
12+
globals()['data'] = _data
13+
# Add to cache - needed for pytest
14+
sys.modules['pylibjpeg.data'] = _data
15+
except ImportError:
16+
pass
17+
18+
# Add the pixel data handler to pydicom (if available)
619
try:
720
import pydicom
821
add_handler()

pylibjpeg/data/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.
-3.51 KB
Binary file not shown.
-3.23 KB
Binary file not shown.
-111 KB
Binary file not shown.
-661 KB
Binary file not shown.
-202 KB
Binary file not shown.
-2.93 KB
Binary file not shown.
-57.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)