Skip to content

Commit

Permalink
fix: widen type constraints for TemplateExpression
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Nov 24, 2024
1 parent 4efe2b7 commit b5fc8eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SymbolicRegression"
uuid = "8254be44-1295-4e6a-a16d-46603ac705cb"
authors = ["MilesCranmer <[email protected]>"]
version = "1.0.1"
version = "1.0.2"

[deps]
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
Expand Down
6 changes: 3 additions & 3 deletions src/TemplateExpression.jl
Original file line number Diff line number Diff line change
Expand Up @@ -330,11 +330,11 @@ end
default_union_limit = 2,
begin
function DE.eval_tree_array(
tree::TemplateExpression{T},
cX::AbstractMatrix{T},
tree::TemplateExpression,
cX::AbstractMatrix,
operators::Union{AbstractOperatorEnum,Nothing}=nothing;
kws...,
) where {T}
)
raw_contents = get_contents(tree)
if has_invalid_variables(tree)
return (nothing, false)
Expand Down

0 comments on commit b5fc8eb

Please sign in to comment.