We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02c5f10 commit edc1981Copy full SHA for edc1981
src/EvaluateDerivative.jl
@@ -375,7 +375,8 @@ function grad_deg0_eval(
375
index = if (mode isa Bool && mode)
376
tree.feature::UInt16
377
elseif (mode isa Bool && !mode)
378
- (index_tree === nothing ? zero(UInt16) : index_tree.val::UInt16)
+ isnothing(index_tree) && error("unexpected input. Please submit a bug report.")
379
+ index_tree.val::UInt16
380
elseif mode == :both
381
index_tree::NodeIndex
382
if tree.constant
0 commit comments