Skip to content

Commit 3812d54

Browse files
authored
fixup start_fabin3.jl
1 parent 43e07a9 commit 3812d54

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

src/additional_functions/start_val/start_fabin3.jl

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,10 @@ function start_fabin3(ram_matrices::RAMMatrices, Σ, μ)
131131

132132
# is there at least one reference indicator?
133133
if length(reference) > 0
134-
if length(reference) > 1
135-
if isempty(indicator2parampos) # don't warn if entire column is fixed
136-
@warn "You have more than 1 scaling indicator for $(ram_matrices.colnames[i])"
137-
end
138-
ref = reference[1]
139-
else
140-
ref = reference[1]
134+
if (length(reference) > 1) && isempty(indicator2parampos) # don't warn if entire column is fixed
135+
@warn "You have more than 1 scaling indicator for $(ram_matrices.colnames[i])"
141136
end
137+
ref = reference[1]
142138

143139
for (j, indicator) in enumerate(indicators)
144140
if (indicator != ref) &&

0 commit comments

Comments
 (0)