Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 600594d

Browse files
committed
Merge pull request arokem#76 from isbadawi/less-np
Remove numpy use from pymatbridge.py.
2 parents 5921fb3 + 324951f commit 600594d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pymatbridge/pymatbridge.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
This is a modified version using ZMQ, Haoxing Zhang Jan.2014
1010
"""
1111

12-
import numpy as np
1312
import os, time
1413
import zmq
1514
import subprocess
@@ -171,7 +170,7 @@ def is_connected(self):
171170
else:
172171
return False
173172
except zmq.ZMQError:
174-
np.disp(".", linefeed=False)
173+
sys.stdout.write('.')
175174
time.sleep(1)
176175
if (time.time() - start_time > self.maxtime) :
177176
print "Matlab session timed out after %d seconds" % (self.maxtime)

0 commit comments

Comments
 (0)