Skip to content

Commit

Permalink
Will this fix brush hanging on the github workflow?
Browse files Browse the repository at this point in the history
  • Loading branch information
gAldeia committed Apr 23, 2024
1 parent 6338107 commit 59465f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/program/tree_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ int TreeNode::get_complexity() const

// include the `w` and `*` if the node is weighted
if (data.get_is_weighted()
&& !(Is<NodeType::Constant>(data.node_type) || Is<NodeType::MeanLabel>(data.node_type)))
&& !(Is<NodeType::Constant>(data.node_type)
|| Is<NodeType::MeanLabel>(data.node_type))
)
return operator_complexities.at(NodeType::Mul)*(
operator_complexities.at(NodeType::Constant) +
node_complexity*(children_complexity_sum)
Expand Down

0 comments on commit 59465f6

Please sign in to comment.