File tree Expand file tree Collapse file tree
src/frontend/specification Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments