Skip to content

Commit c99afed

Browse files
authored
resolve deprecated scipy dependency (#54)
1 parent d75baa6 commit c99afed

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

conda-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ hdf5=1.10.4=hb1b8bf9_0
4242
heapdict=1.0.0=py36_2
4343
icu=58.2=h9c2bf20_1
4444
intel-openmp=2019.4=243
45+
imageio=2.6.1=py36_0
4546
ipykernel=5.1.1=py36h39e3cac_0
4647
ipython=7.6.0=py36h39e3cac_0
4748
ipython_genutils=0.2.0=py36_0

omegaml/client/cli/datasets.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import imghdr
22

3+
import pandas as pd
4+
35
from omegaml.client.docoptparser import CommandBase
46
from omegaml.client.util import get_omega
5-
import pandas as pd
67

78

89
class DatasetsCommandBase(CommandBase):
@@ -47,7 +48,7 @@ def put(self):
4748
meta = om.datasets.put(data, name, append=not replace)
4849
elif imghdr.what(local):
4950
# images
50-
from scipy.misc import imread
51+
from imageio import imread
5152
img = imread(local)
5253
meta = om.datasets.put(img, name)
5354
else:

omegaml/tests/cli/scenarios.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ def create_local_csv(self, path, size=(100, 2), sep=','):
181181
return df
182182

183183
def create_local_image_file(self, path):
184+
from imageio import imsave
184185
import numpy as np
185186
img = np.zeros([100, 100, 3], dtype=np.uint8)
186187
img.fill(255)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
hdf_deps = ['tables>=3.2.2']
1313
tf_deps = ['tensorflow==1.15.0']
1414
keras_deps = ['keras==2.2.4']
15-
graph_deps = ['matplotlib==3.1.0', 'seaborn==0.9.0']
15+
graph_deps = ['matplotlib==3.1.0', 'seaborn==0.9.0', 'imageio==2.6.1']
1616

1717
setup(
1818
name='omegaml',

0 commit comments

Comments
 (0)