Skip to content

Commit

Permalink
Merge pull request #11 from SciML/smc/fix
Browse files Browse the repository at this point in the history
Fix type piracy
  • Loading branch information
ChrisRackauckas authored Apr 7, 2024
2 parents d8ece0d + 8cad123 commit 2cd876e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 4 additions & 1 deletion src/UDEComponents.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ using ComponentArrays: ComponentArray
export create_ude_component, multi_layer_feed_forward

include("utils.jl")
include("hacks.jl") # this should be removed / upstreamed

"""
create_ude_component(n_input = 1, n_output = 1;
Expand Down Expand Up @@ -42,4 +41,8 @@ function create_ude_component(n_input = 1,
return ude_comp
end

function lazyconvert(T, x::Symbolics.Arr)
Symbolics.array_term(convert, T, x, size = size(x))
end

end
4 changes: 0 additions & 4 deletions src/hacks.jl

This file was deleted.

3 changes: 1 addition & 2 deletions test/qa.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ using JET
Aqua.find_persistent_tasks_deps(UDEComponents)
Aqua.test_ambiguities(UDEComponents, recursive = false)
Aqua.test_deps_compat(UDEComponents)
# TODO: fix type piracy in propagate_ndims and propagate_shape
Aqua.test_piracies(UDEComponents, broken = true)
Aqua.test_piracies(UDEComponents)
Aqua.test_project_extras(UDEComponents)
Aqua.test_stale_deps(UDEComponents, ignore = Symbol[])
Aqua.test_unbound_args(UDEComponents)
Expand Down

0 comments on commit 2cd876e

Please sign in to comment.