Skip to content

Commit 4bf3147

Browse files
committed
Coping with the name change of the dicom module.
The module name used to be "dicom"; from version 1.0 the module name as become "pydicom". See https://github.com/pydicom/pydicom/wiki/Porting-to-pydicom-1.0
1 parent 9d2c6a1 commit 4bf3147

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ecg/ecg.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@
3232
THE SOFTWARE.
3333
"""
3434
import numpy as np
35-
import dicom
35+
try:
36+
import dicom
37+
except ImportError:
38+
import pydicom as dicom
3639
import struct
3740
import io
3841
import requests

0 commit comments

Comments
 (0)