Skip to content

Commit ec9fa98

Browse files
committed
ParTable(graph): small tweak for clarity
1 parent a4f3a5d commit ec9fa98

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/frontend/specification/StenoGraphs.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function ParameterTable(
4747
free = columns[:free]
4848
value_fixed = columns[:value_fixed]
4949
start = columns[:start]
50-
params = columns[:param]
50+
param_refs = columns[:param]
5151
# group = Vector{Symbol}(undef, n)
5252

5353
for (i, element) in enumerate(graph)
@@ -82,24 +82,24 @@ function ParameterTable(
8282
if modval == :NaN
8383
throw(DomainError(NaN, "NaN is not allowed as a parameter label."))
8484
end
85-
params[i] = modval
85+
param_refs[i] = modval
8686
end
8787
end
8888
end
8989
end
9090

9191
# make identifiers for parameters that are not labeled
9292
current_id = 1
93-
for i in 1:length(params)
94-
if params[i] == Symbol("")
93+
for i in eachindex(param_refs)
94+
if param_refs[i] == Symbol("")
9595
if free[i]
96-
params[i] = Symbol(param_prefix, :_, current_id)
96+
param_refs[i] = Symbol(param_prefix, :_, current_id)
9797
current_id += 1
9898
else
99-
params[i] = :const
99+
param_refs[i] = :const
100100
end
101101
elseif !free[i]
102-
@warn "You labeled a constant ($(params[i])=$(value_fixed[i])). Please check if the labels of your graph are correct."
102+
@warn "You labeled a constant ($(param_refs[i])=$(value_fixed[i])). Please check if the labels of your graph are correct."
103103
end
104104
end
105105

0 commit comments

Comments
 (0)