-
-
Notifications
You must be signed in to change notification settings - Fork 471
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide mock 'dicom' import with helpful transition information (#585)
* Provide mock 'dicom' import with helpful transition information * pep-8 fix
- Loading branch information
1 parent
898c0cf
commit 1eb1da7
Showing
4 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
msg = """ | ||
Pydicom via 'import dicom' has been removed in pydicom version 1.0. | ||
Please install the `dicom` package to restore function of code relying | ||
on pydicom 0.9.9 or earlier. E.g. `pip install dicom`. | ||
Alternatively, most code can easily be converted to pydicom > 1.0 by | ||
changing import lines from 'import dicom' to 'import pydicom'. | ||
See the Transition Guide at | ||
https://pydicom.github.io/pydicom/stable/transition_to_pydicom1.html. | ||
""" | ||
|
||
raise ImportError(msg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
"""Pure python package for DICOM medical file reading and writing.""" | ||
import re | ||
|
||
__version__ = '1.0.1' | ||
__version__ = '1.0.2' | ||
__version_info__ = tuple( | ||
re.match(r'(\d+\.\d+\.\d+).*', __version__).group(1).split('.')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters