Skip to content
Snippets Groups Projects
Commit 6c11acb0 authored by Nicolas Marsic's avatar Nicolas Marsic
Browse files

fix for numpy real/imag: now works with old and new numpy

parent 835e3933
No related branches found
No related tags found
No related merge requests found
......@@ -204,9 +204,9 @@ def display(nNode, maxIt, lStart, lStep, rankTol, origin, radius):
print format(rankTol, ".2e")
print "---------------------------------------"
print " # Cirular path origin: ",
print "(" + format(np.real(origin), "+.2e") + ")",
print "(" + format(origin.real, "+.2e") + ")",
print "+",
print "(" + format(np.imag(origin), "+.2e") + ")j"
print "(" + format(origin.imag, "+.2e") + ")j"
print " # Cirular path radius: ",
print format(radius, "+.2e")
print "---------------------------------------"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment