Skip to content

Commit 8643d24

Browse files
Add docstrings to be picked up by docs
1 parent abe6c04 commit 8643d24

File tree

4 files changed

+26
-10
lines changed

4 files changed

+26
-10
lines changed

src/Nodes/GR4J/GR4JNode.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,11 @@ function update_state!(node::GR4JNode, ts::Int64, ps, rs, q, UH1, UH2)::Nothing
209209
return nothing
210210
end
211211

212+
"""
213+
update_params!(node::GR4JNode, X1::Float64, X2::Float64, X3::Float64, X4::Float64)::Nothing
212214
215+
Update parameters for GR4J.
216+
"""
213217
function update_params!(node::GR4JNode, X1::Float64, X2::Float64, X3::Float64, X4::Float64)::Nothing
214218
node.X1 = Param(X1, bounds=node.X1.bounds)
215219
node.X2 = Param(X2, bounds=node.X2.bounds)

src/Nodes/HyMod/HyModNode.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,11 @@ function run_hymod!(node::SimpleHyModNode, ts::Int64, P::F, PET::F, inflow::F, e
158158
return Q_t
159159
end
160160

161+
"""
162+
update_params!(node::HyModNode, Sm_max::F, B::F, alpha::F, Kf::F, Ks::F) where {F<:Float64}
161163
164+
Update parameters for HyMod.
165+
"""
162166
function update_params!(node::HyModNode, Sm_max::F, B::F, alpha::F, Kf::F, Ks::F) where {F<:Float64}
163167
node.Sm_max = Param(Sm_max, bounds=node.Sm_max.bounds::Tuple)
164168
node.B = Param(B, bounds=node.B.bounds::Tuple)

src/Nodes/Node.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ end
7676
"""
7777
get_node_id(mg::MetaDiGraph, node_name::String)::Int64
7878
79-
Retrieve network node_id for a given gauge (by name).
79+
Retrieve network `node_id` for a given gauge (by name).
8080
"""
8181
function get_node_id(mg::MetaDiGraph, node_name::String)::Int64
8282
v = collect(MetaGraphs.filter_vertices(mg, :name, node_name))
@@ -90,7 +90,7 @@ end
9090
"""
9191
get_node(sn::StreamfallNetwork, node_name::String)
9292
93-
Retrieve node_id and node property for a specified gauge.
93+
Retrieve `node_id` and node property for a specified gauge.
9494
9595
# Arguments
9696
- sn : Streamfall Network

src/Nodes/SYMHYD/SYMHYDNode.jl

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,23 @@ function update_state!(node::SYMHYDNode, ts::Int64, sm_store, gw_store, total_st
155155
node.quickflow[ts] = quickflow
156156
end
157157

158+
"""
159+
update_params!(node::GR4JNode, X1::Float64, X2::Float64, X3::Float64, X4::Float64)::Nothing
158160
159-
function update_params!(node::SYMHYDNode, baseflow_coef::Float64, impervious_threshold::Float64,
160-
infiltration_coef::Float64,
161-
infiltration_shape::Float64,
162-
interflow_coef::Float64,
163-
pervious_fraction::Float64,
164-
risc::Float64,
165-
recharge_coef::Float64,
166-
smsc::Float64)::Nothing
161+
Update model parameters.
162+
"""
163+
function update_params!(
164+
node::SYMHYDNode,
165+
baseflow_coef::Float64,
166+
impervious_threshold::Float64,
167+
infiltration_coef::Float64,
168+
infiltration_shape::Float64,
169+
interflow_coef::Float64,
170+
pervious_fraction::Float64,
171+
risc::Float64,
172+
recharge_coef::Float64,
173+
smsc::Float64
174+
)::Nothing
167175
node.baseflow_coef = Param(baseflow_coef, bounds=node.baseflow_coef.bounds)
168176
node.impervious_threshold = Param(impervious_threshold, bounds=node.impervious_threshold.bounds)
169177
node.infiltration_coef = Param(infiltration_coef, bounds=node.infiltration_coef.bounds)

0 commit comments

Comments
 (0)