Skip to content

Commit d53096e

Browse files
committed
Python3 support
Signed-off-by: Justin Lecher <[email protected]>
1 parent dbd3b1a commit d53096e

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Diff for: inertia_tensor.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ def draw_axes(start, ends, cone_ends, radius=.2, name_obj="tensor"):
8080
z_com /= totmass
8181

8282
if not int(quiet):
83-
print
84-
print "Center of mass: "
85-
print
86-
print x_com, y_com, z_com
83+
print()
84+
print("Center of mass: ")
85+
print()
86+
print(x_com, y_com, z_com)
8787

8888
I = []
8989

@@ -116,14 +116,14 @@ def draw_axes(start, ends, cone_ends, radius=.2, name_obj="tensor"):
116116
ord_vects = vects[:, eig_ord].T
117117

118118
if not int(quiet):
119-
print
120-
print "Inertia tensor z, y, x eigenvalues:"
121-
print
122-
print ord_vals
123-
print
124-
print "Inertia tensor z, y, x eigenvectors:"
125-
print
126-
print ord_vects
119+
print()
120+
print("Inertia tensor z, y, x eigenvalues:")
121+
print()
122+
print(ord_vals)
123+
print()
124+
print("Inertia tensor z, y, x eigenvectors:")
125+
print()
126+
print(ord_vects)
127127

128128
if int(scaling) == 0:
129129
norm_vals = [sum(numpy.sqrt(ord_vals / totmass)) / 3 for i in range(3)]

0 commit comments

Comments
 (0)