Skip to content

Commit 615f5ab

Browse files
committed
tentative fix for the size of this array while I wait for an answer from sai
1 parent 0e12148 commit 615f5ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ecohydrology/cellular_automaton_vegetation_flat_surface/Ecohyd_functions_flat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def Empty_arrays(n, grid, grid1):
111111
Time = np.empty(n) # To record time elapsed from the start of simulation
112112
# CumWaterStress = np.empty([n/55, grid1.number_of_cells])
113113
# Cum Water Stress
114-
VegType = np.empty([n/55, grid1.number_of_cells], dtype=int)
114+
VegType = np.empty([int(n/55), grid1.number_of_cells], dtype=int)
115115
PET_ = np.zeros([365, grid.number_of_cells])
116116
Rad_Factor = np.empty([365, grid.number_of_cells])
117117
EP30 = np.empty([365, grid.number_of_cells])

0 commit comments

Comments
 (0)