Skip to content

Commit c5b9df9

Browse files
authored
Apply updated formatting (#144)
* Skip tests on new OOP notebook * Remove references to old notebooks * Apply updated formatting rules * black-jupyter overrode changes from nbqa-flake8
1 parent 4c31824 commit c5b9df9

16 files changed

+107
-244
lines changed

lessons/landlab/landlab-terrainbento/coupled_process_elements/model_basicCh_steady_solution.ipynb

+2
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@
115115
"outputs": [],
116116
"source": [
117117
"# we can use an output writer to run until the model reaches steady state.\n",
118+
"\n",
119+
"\n",
118120
"class run_to_steady:\n",
119121
" def __init__(self, model):\n",
120122
" self.model = model\n",

lessons/landlab/landlab-terrainbento/coupled_process_elements/model_basicCh_steady_solution_solution.ipynb

+2
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@
115115
"outputs": [],
116116
"source": [
117117
"# we can use an output writer to run until the model reaches steady state.\n",
118+
"\n",
119+
"\n",
118120
"class run_to_steady:\n",
119121
" def __init__(self, model):\n",
120122
" self.model = model\n",

lessons/landlab/landlab-terrainbento/coupled_process_elements/model_basicRt_steady_solution.ipynb

+3
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@
9494
"outputs": [],
9595
"source": [
9696
"# we can use an output writer to run until the model reaches steady state.\n",
97+
"\n",
98+
"\n",
9799
"class run_to_steady:\n",
98100
" def __init__(self, model):\n",
99101
" self.model = model\n",
@@ -130,6 +132,7 @@
130132
"# initialize the model by passing the correct arguments and\n",
131133
"# keyword arguments.\n",
132134
"\n",
135+
"\n",
133136
"model = BasicRt(\n",
134137
" clock,\n",
135138
" grid,\n",

lessons/landlab/landlab-terrainbento/coupled_process_elements/model_basicRt_steady_solution_solution.ipynb

+3
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@
9393
"outputs": [],
9494
"source": [
9595
"# we can use an output writer to run until the model reaches steady state.\n",
96+
"\n",
97+
"\n",
9698
"class run_to_steady:\n",
9799
" def __init__(self, model):\n",
98100
" self.model = model\n",
@@ -129,6 +131,7 @@
129131
"# initialize the model by passing the correct arguments and\n",
130132
"# keyword arguments.\n",
131133
"\n",
134+
"\n",
132135
"model = BasicRt(\n",
133136
" clock,\n",
134137
" grid,\n",

lessons/landlab/landlab-terrainbento/coupled_process_elements/model_basicVs_steady_solution.ipynb

+2
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@
125125
"outputs": [],
126126
"source": [
127127
"# we can use an output writer to run until the model reaches steady state.\n",
128+
"\n",
129+
"\n",
128130
"class run_to_steady:\n",
129131
" def __init__(self, model):\n",
130132
" self.model = model\n",

lessons/landlab/landlab-terrainbento/coupled_process_elements/model_basicVs_steady_solution_solution.ipynb

+2
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@
125125
"outputs": [],
126126
"source": [
127127
"# we can use an output writer to run until the model reaches steady state.\n",
128+
"\n",
129+
"\n",
128130
"class run_to_steady:\n",
129131
" def __init__(self, model):\n",
130132
" self.model = model\n",

lessons/landlab/landlab-terrainbento/coupled_process_elements/model_basic_steady_solution.ipynb

+2
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@
114114
"outputs": [],
115115
"source": [
116116
"# we can use an output writer to run until the model reaches steady state.\n",
117+
"\n",
118+
"\n",
117119
"class run_to_steady:\n",
118120
" def __init__(self, model):\n",
119121
" self.model = model\n",

lessons/landlab/landlab-terrainbento/coupled_process_elements/model_basic_steady_solution_solution.ipynb

+2
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@
116116
"outputs": [],
117117
"source": [
118118
"# we can use an output writer to run until the model reaches steady state.\n",
119+
"\n",
120+
"\n",
119121
"class run_to_steady:\n",
120122
" def __init__(self, model):\n",
121123
" self.model = model\n",

lessons/landlab/landlab-terrainbento/coupled_process_elements/model_basic_var_m_steady_solution.ipynb

+2
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@
112112
"outputs": [],
113113
"source": [
114114
"# we can use an output writer to run until the model reaches steady state.\n",
115+
"\n",
116+
"\n",
115117
"class run_to_steady:\n",
116118
" def __init__(self, model):\n",
117119
" self.model = model\n",

lessons/landlab/landlab-terrainbento/coupled_process_elements/model_basic_var_m_steady_solution_solution.ipynb

+2
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@
112112
"outputs": [],
113113
"source": [
114114
"# we can use an output writer to run until the model reaches steady state.\n",
115+
"\n",
116+
"\n",
115117
"class run_to_steady:\n",
116118
" def __init__(self, model):\n",
117119
" self.model = model\n",

lessons/landlab/landlab/bedrock_landslides_on_dems.ipynb

+2
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@
250250
"outputs": [],
251251
"source": [
252252
"# These are plotting functions\n",
253+
"\n",
254+
"\n",
253255
"def plotting(\n",
254256
" grid, topo=True, DA=True, hill_DA=False, flow_metric=\"D8\", hill_flow_metric=\"Quinn\"\n",
255257
"):\n",

lessons/landlab/landlab/create_a_component.a.ipynb

+1
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@
197197
"source": [
198198
"# Type your code here: calculate time step\n",
199199
"\n",
200+
"\n",
200201
"for _ in trange(1000):\n",
201202
" ... # Type your code here: calculate diffusion and update *z*\n",
202203
"\n",

lessons/landlab/landlab/create_a_component.ipynb

+1
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@
205205
"source": [
206206
"# Type your code here: calculate time step\n",
207207
"\n",
208+
"\n",
208209
"for _ in trange(1000):\n",
209210
" ... # Type your code here: calculate diffusion and update *z*\n",
210211
"\n",

lessons/python/rainfall_runoff.ipynb

+8
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@
132132
"outputs": [],
133133
"source": [
134134
"# calculate time to peak\n",
135+
"\n",
136+
"\n",
135137
"def calculate_time_to_peak(length, slope, t_rain):\n",
136138
" \"\"\"\n",
137139
" Calculate the time to peak of a hydrograph using the SCS-CN method.\n",
@@ -165,6 +167,8 @@
165167
"outputs": [],
166168
"source": [
167169
"# calculate peak discharge\n",
170+
"\n",
171+
"\n",
168172
"def calculate_peak_discharge(area, w_eff, t_peak):\n",
169173
" \"\"\"\n",
170174
" Calculate the peak discharge of a hydrograph using the SCS-CN method.\n",
@@ -245,6 +249,8 @@
245249
"outputs": [],
246250
"source": [
247251
"# calculate the runoff hydrograph\n",
252+
"\n",
253+
"\n",
248254
"def calculate_runoff_hydrograph(q_peak, t_peak, unit_hydrograph):\n",
249255
" \"\"\"\n",
250256
" Calculate the runoff hydrograph using the SCS-CN method.\n",
@@ -289,6 +295,8 @@
289295
"outputs": [],
290296
"source": [
291297
"# create a model function\n",
298+
"\n",
299+
"\n",
292300
"def scs_curve_number_model(cn, area, length, slope, t_rain, w, unit_hydrograph):\n",
293301
" \"\"\"\n",
294302
" Model the runoff hydrograph using the SCS-CN method.\n",

0 commit comments

Comments
 (0)