Skip to content

Commit 6f45664

Browse files
committed
Use print function.
1 parent fe82461 commit 6f45664

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

ecohydrology/cellular_automaton_vegetation_DEM/Ecohyd_functions_DEM.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
from __future__ import print_function
22
# Authors: Sai Nudurupati & Erkan Istanbulluoglu, 21May15
33
# Edited: 15Jul16 - to conform to Landlab version 1.
44
import numpy as np
@@ -159,8 +159,8 @@ def Plot_(grid, VegType, yrs, yr_step=10):
159159
['green', 'red', 'black', 'white', 'red', 'black'])
160160
bounds = [-0.5, 0.5, 1.5, 2.5, 3.5, 4.5, 5.5]
161161
norm = mpl.colors.BoundaryNorm(bounds, cmap.N)
162-
print 'Plotting cellular field of Plant Functional Type'
163-
print 'Green - Grass; Red - Shrubs; Black - Trees; White - Bare'
162+
print('Plotting cellular field of Plant Functional Type')
163+
print('Green - Grass; Red - Shrubs; Black - Trees; White - Bare')
164164
# # Plot images to make gif.
165165
for year in range(0, yrs, yr_step):
166166
filename = 'Year = ' + "%05d" % year

ecohydrology/cellular_automaton_vegetation_flat_surface/Ecohyd_functions_flat.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import print_function
12

23
# Authors: Sai Nudurupati & Erkan Istanbulluoglu, 21May15
34
# Edited: 15Jul16 - to conform to Landlab version 1.
@@ -159,8 +160,8 @@ def Plot_(grid, VegType, yrs, yr_step=10):
159160
['green', 'red', 'black', 'white', 'red', 'black'])
160161
bounds = [-0.5, 0.5, 1.5, 2.5, 3.5, 4.5, 5.5]
161162
norm = mpl.colors.BoundaryNorm(bounds, cmap.N)
162-
print 'Plotting cellular field of Plant Functional Type'
163-
print 'Green - Grass; Red - Shrubs; Black - Trees; White - Bare'
163+
print('Plotting cellular field of Plant Functional Type')
164+
print('Green - Grass; Red - Shrubs; Black - Trees; White - Bare')
164165
# # Plot images to make gif.
165166
for year in range(0, yrs, yr_step):
166167
filename = 'Year = ' + "%05d" % year

0 commit comments

Comments
 (0)