Skip to content

Commit ad7164b

Browse files
committed
remove ipython display and requirement
1 parent 196d4d9 commit ad7164b

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
'matplotlib>=1.5.1',
5858
'requests>=2.10.0',
5959
'pandas>=0.19.1',
60-
'ipython>=5.1.0',
6160
],
6261

6362
# List additional groups of dependencies here (e.g. development

wfdb/annotations.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import sys
44
import re
55
import os
6-
from IPython.display import display
76
from . import _headers
87
from . import downloads
98

@@ -116,7 +115,7 @@ def checkfield(self, field):
116115
# Check the field type
117116
if type(getattr(self, field)) not in annfieldtypes[field]:
118117
print('The '+field+' field must be one of the following types:')
119-
display(annfieldtypes[field])
118+
print(annfieldtypes[field])
120119
sys.exit()
121120

122121
# Field specific checks
@@ -148,14 +147,14 @@ def checkfield(self, field):
148147
for item in fielditem:
149148
if type(item) not in annfieldtypes[field]:
150149
print("All elements of the '", field, "' field must be one of the following types:")
151-
display(annfieldtypes[field])
150+
print(annfieldtypes[field])
152151
print("All elements must be present")
153152
sys.exit()
154153
else:
155154
for item in fielditem:
156155
if item is not None and type(item) not in annfieldtypes[field]:
157156
print("All elements of the '", field, "' field must be one of the following types:")
158-
display(annfieldtypes[field])
157+
print(annfieldtypes[field])
159158
print("Elements may also be set to 'None'")
160159
sys.exit()
161160

@@ -409,7 +408,7 @@ def showanncodes():
409408
Usage:
410409
showanncodes()
411410
"""
412-
display(symcodes)
411+
print(symcodes)
413412

414413
## ------------- Reading Annotations ------------- ##
415414

wfdb/downloads.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import os
44
import sys
55
import requests
6-
from IPython.display import display
76

87
# Read a header file from physiobank
98
def streamheader(recordname, pbdir):

wfdb/records.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import sys
1212
from collections import OrderedDict
1313
from calendar import monthrange
14-
from IPython.display import display
1514
import requests
1615
import multiprocessing
1716
from . import _headers
@@ -278,20 +277,20 @@ def checkitemtype(item, field, allowedtypes, channels=None):
278277
if type(item[ch]) not in allowedtypes:
279278
print(allowedtypes)
280279
print("Channel "+str(ch)+" of field: '"+field+"' must be one of the following types:")
281-
display(allowedtypes)
280+
print(allowedtypes)
282281
sys.exit()
283282
# The field may be None for the channel
284283
else:
285284
if type(item[ch]) not in allowedtypes:
286285
print("Channel "+str(ch)+" of field: '"+field+"' must be a 'None', or one of the following types:")
287-
display(allowedtypes)
286+
print(allowedtypes)
288287
sys.exit()
289288

290289
# Single scalar to check
291290
else:
292291
if type(item) not in allowedtypes:
293292
print("Field: '"+field+"' must be one of the following types:")
294-
display(allowedtypes)
293+
print(allowedtypes)
295294
sys.exit()
296295

297296

0 commit comments

Comments
 (0)