Skip to content

Commit 779a65f

Browse files
committed
print function for python 3 in cuboid_mesh
1 parent 0411194 commit 779a65f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

fidimag/common/cuboid_mesh.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
in the innermost loop, and the z-axis in the outermost loop!
2727
2828
"""
29+
from __future__ import print_function
2930
import os
3031
import numpy as np
3132
from textwrap import dedent
@@ -278,7 +279,7 @@ def check_size(self, system_memory_fake_for_testing=None):
278279

279280
if 2 * size_coordinates_GiB > mem_GiB:
280281
# print because no logging yet
281-
print "Warning! Size of mesh coordinates i {} GiB.".format(size_coordinates_GiB)
282-
print "You have {} GiB system memory. Possible halt.".format(mem_GiB)
282+
print("Warning! Size of mesh coordinates i {} GiB.".format(size_coordinates_GiB))
283+
print("You have {} GiB system memory. Possible halt.".format(mem_GiB))
283284
return 1
284285
return 0

0 commit comments

Comments
 (0)