Skip to content

Commit b754c50

Browse files
committed
fix: added typing
1 parent 52f2ffc commit b754c50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/models.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ using Lux
33
function select_and_preprocess((point, atoms); cutoff_radius)
44
select_and_preprocess(point, atoms; cutoff_radius)
55
end
6-
function select_and_preprocess(point::Batch, atoms::AnnotedKDTree; cutoff_radius)
6+
function select_and_preprocess(point::Batch, atoms::AnnotedKDTree{Sphere{T}}; cutoff_radius) where T
77
neighboord = Folds.map(point.field) do point
8-
select_neighboord(point, atoms; cutoff_radius)
9-
end |> Batch
8+
select_neighboord(point, atoms; cutoff_radius)::StructVector{Sphere{T}}
9+
end |> Batch{Vector{<:StructVector{Sphere{T}}}}
1010
preprocessing((point, neighboord))
1111
end
1212

0 commit comments

Comments
 (0)