Skip to content

Commit 3f4ecb4

Browse files
committed
Update delete_nodes.jl
Add `verbose` argument to `new_child_link`
1 parent 9901e1a commit 3f4ecb4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/compute_MTG/delete_nodes.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,14 @@ mixing branching and change in scale.
185185
Note that in the case (1) of the warning the first child only takes the "/" link, the others
186186
keep their links.
187187
"""
188-
function new_child_link(node)
188+
function new_child_link(node, verbose=true)
189189

190190
deleted_link = parent(node) |> link
191191
child_link = link(node)
192192

193193
if deleted_link == "+" && child_link == "/"
194194
new_child_link = child_link
195-
@warn join(
195+
verbose && @warn join(
196196
[
197197
"Scale of the child node decomposed but its deleted parent was branching.",
198198
" Keep decomposition, please check if the branching is still correct."
@@ -202,7 +202,7 @@ function new_child_link(node)
202202
new_child_link = deleted_link
203203
elseif deleted_link == "/" && child_link == "+"
204204
new_child_link = child_link
205-
@warn join(
205+
verbose && @warn join(
206206
[
207207
"Scale of the child node branched but its deleted parent was decomposing.",
208208
" Keep branching, please check if the decomposition is still correct."

0 commit comments

Comments
 (0)