Skip to content

Commit 98d01cc

Browse files
committed
Use load_params function to read input.
1 parent b82c995 commit 98d01cc

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

ecohydrology/cellular_automaton_vegetation_DEM/cellular_automaton_vegetation_DEM.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@
113113
"import numpy as np\n",
114114
"from landlab.io import read_esri_ascii\n",
115115
"from landlab import RasterModelGrid as rmg\n",
116-
"from Ecohyd_functions_DEM import (txt_data_dict, Initialize_, Empty_arrays,\n",
116+
"from landlab import load_params\n",
117+
"from Ecohyd_functions_DEM import (Initialize_, Empty_arrays,\n",
117118
" Create_PET_lookup, Save_, Plot_)"
118119
]
119120
},
@@ -165,7 +166,7 @@
165166
"outputs": [],
166167
"source": [
167168
"InputFile = 'Inputs_Vegetation_CA_DEM.txt'\n",
168-
"data = txt_data_dict(InputFile) # Creates dictionary that holds the inputs"
169+
"data = load_params(InputFile) # Creates dictionary that holds the inputs"
169170
]
170171
},
171172
{

ecohydrology/cellular_automaton_vegetation_flat_surface/cellular_automaton_vegetation_flat_domain.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@
112112
"import time\n",
113113
"import numpy as np\n",
114114
"from landlab import RasterModelGrid as rmg\n",
115-
"from Ecohyd_functions_flat import (txt_data_dict, Initialize_, Empty_arrays,\n",
115+
"from landlab import load_params\n",
116+
"from Ecohyd_functions_flat import (Initialize_, Empty_arrays,\n",
116117
" Create_PET_lookup, Save_, Plot_)"
117118
]
118119
},
@@ -164,7 +165,7 @@
164165
"outputs": [],
165166
"source": [
166167
"InputFile = 'Inputs_Vegetation_CA_flat.txt'\n",
167-
"data = txt_data_dict(InputFile) # Create dictionary that holds the inputs"
168+
"data = load_params(InputFile) # Create dictionary that holds the inputs"
168169
]
169170
},
170171
{

0 commit comments

Comments
 (0)