Skip to content
This repository was archived by the owner on May 23, 2022. It is now read-only.

Commit f3e7212

Browse files
committed
Add default dropping of getobs
1 parent 64b73b7 commit f3e7212

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/observation.jl

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,6 @@ default_obsdim(::Type{<:AbstractArray{<:Any, N}}) where N = N
1313
default_obsdim(A::AbstractArray) = ndims(A)
1414
default_obsdim(tup::Tuple) = map(default_obsdim, tup)
1515

16-
"""
17-
datasubset(data, idx; obsdim = default_obsdim(data))
18-
19-
Return a lazy subset of the observations in `data` that correspond
20-
to the given `idx`. No data should be copied except of the
21-
indices. Note that `idx` can be of type `Int` or `AbstractVector`.
22-
Both options must be supported by a custom type.
23-
24-
If it makes sense for the type of `data`, `obsdim` can be used
25-
to indicate which dimension of `data` denotes the observations.
26-
See [`default_obsdim`](@ref) for defining a default dimension.
27-
"""
28-
function datasubset end
29-
3016
"""
3117
getobs(data, idx; obsdim = default_obsdim(data))
3218
@@ -47,6 +33,7 @@ to indicate which dimension of `data` denotes the observations.
4733
See [`default_obsdim`](@ref) for defining a default dimension.
4834
"""
4935
function getobs end
36+
getobs(data, idx; obsdim) = getobs(data, idx)
5037

5138
"""
5239
getobs!(buffer, data, idx; obsdim = default_obsdim(obsdim))

0 commit comments

Comments
 (0)