Skip to content

Commit

Permalink
Make python scripts compatible with python3
Browse files Browse the repository at this point in the history
  • Loading branch information
ttadano committed Oct 30, 2017
1 parent 6c2f752 commit 88e40a5
Show file tree
Hide file tree
Showing 5 changed files with 175 additions and 174 deletions.
6 changes: 3 additions & 3 deletions tools/analyze_phonons.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def print_lifetime_at_given_temperature():
def print_thermal_conductivity():

if not (options.kpoint is None):
print "# Warning: --kpoint option is discarded"
print("# Warning: --kpoint option is discarded")

if options.mode is None:
beg_s = 1
Expand All @@ -160,7 +160,7 @@ def print_thermal_conductivity():
def print_thermal_conductivity_with_boundary():

if not (options.kpoint is None):
print "# Warning: --kpoint option is discarded"
print("# Warning: --kpoint option is discarded")

if options.mode is None:
beg_s = 1
Expand Down Expand Up @@ -194,7 +194,7 @@ def print_cumulative_thermal_conductivity(cumulative_mode):
sys.exit("--temp is necessary when --calc=%s" % cumulative_mode)

if not (options.kpoint is None):
print "# Warning: --kpoint option is discarded"
print("# Warning: --kpoint option is discarded")

if options.mode is None:
beg_s = 1
Expand Down

0 comments on commit 88e40a5

Please sign in to comment.