Breaking: split set into unsafe_set and set
#1249
Annotations
10 errors and 1 warning
|
build
Process completed with exit code 1.
|
|
build:
src/groupby.jl#L331
doctest failure in src/groupby.jl:331-350
```jldoctest groupby
julia> groupmeans = mean.(groupby(A, Ti=>month, Y=>isodd))
metadata = Dict{Symbol, Any}(:groupby => (:Ti => Dates.month, :Y => isodd))
┌ 12×2 DimArray{Float64, 2} ┐
├───────────────────────────┴────────────────────────────────────── dims ┐
↓ Ti Sampled{Int64} [1, 2, …, 11, 12] ForwardOrdered Irregular Points,
→ Y Sampled{Bool} [false, true] ForwardOrdered Irregular Points
└────────────────────────────────────────────────────────────────────────┘
↓ → false true
1 0.499594 0.500533
2 0.498145 0.501379
3 0.499871 0.500296
4 0.500921 0.49905
⋮
8 0.499599 0.500915
9 0.500715 0.501021
10 0.501105 0.500644
11 0.498606 0.498801
12 0.501643 0.499298
```
Subexpression:
groupmeans = mean.(groupby(A, Ti=>month, Y=>isodd))
Evaluated output:
ERROR: UndefVarError: `A` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
[1] top-level scope
@ none:1
Expected output:
metadata = Dict{Symbol, Any}(:groupby => (:Ti => Dates.month, :Y => isodd))
┌ 12×2 DimArray{Float64, 2} ┐
├───────────────────────────┴────────────────────────────────────── dims ┐
↓ Ti Sampled{Int64} [1, 2, …, 11, 12] ForwardOrdered Irregular Points,
→ Y Sampled{Bool} [false, true] ForwardOrdered Irregular Points
└────────────────────────────────────────────────────────────────────────┘
↓ → false true
1 0.499594 0.500533
2 0.498145 0.501379
3 0.499871 0.500296
4 0.500921 0.49905
⋮
8 0.499599 0.500915
9 0.500715 0.501021
10 0.501105 0.500644
11 0.498606 0.498801
12 0.501643 0.499298
diff =
Warning: Diff output requires color.
metadata = Dict{Symbol, Any}(:groupby => (:Ti => Dates.month, :Y => isodd))
┌ 12×2 DimArray{Float64, 2} ┐
├───────────────────────────┴────────────────────────────────────── dims ┐
↓ Ti Sampled{Int64} [1, 2, …, 11, 12] ForwardOrdered Irregular Points,
→ Y Sampled{Bool} [false, true] ForwardOrdered Irregular Points
└────────────────────────────────────────────────────────────────────────┘
↓ → false true
1 0.499594 0.500533
2 0.498145 0.501379
3 0.499871 0.500296
4 0.500921 0.49905
⋮
8 0.499599 0.500915
9 0.500715 0.501021
10 0.501105 0.500644
11 0.498606 0.498801
12 0.501643 0.499298ERROR: UndefVarError: `A` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
[1] top-level scope
@ none:1
|
|
build:
src/groupby.jl#L322
doctest failure in src/groupby.jl:322-326
```jldoctest groupby
julia> map(.-, groupby(A, Ti=>month), mean.(groupby(A, Ti=>month), dims=Ti));
metadata = Dict{Symbol, Any}(:groupby => (:Ti => Dates.month))
metadata = Dict{Symbol, Any}(:groupby => (:Ti => Dates.month))
```
Subexpression:
map(.-, groupby(A, Ti=>month), mean.(groupby(A, Ti=>month), dims=Ti));
Evaluated output:
ERROR: UndefVarError: `A` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
[1] top-level scope
@ none:1
Expected output:
metadata = Dict{Symbol, Any}(:groupby => (:Ti => Dates.month))
metadata = Dict{Symbol, Any}(:groupby => (:Ti => Dates.month))
diff =
Warning: Diff output requires color.
metadata = Dict{Symbol, Any}(:groupby => (:Ti => Dates.month))
metadata = Dict{Symbol, Any}(:groupby => (:Ti => Dates.month))ERROR: UndefVarError: `A` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
[1] top-level scope
@ none:1
|
|
build:
src/groupby.jl#L298
doctest failure in src/groupby.jl:298-316
```jldoctest groupby; setup = :(using Statistics)
julia> groupmeans = mean.(groups) # Take the monthly mean
┌ 12-element DimArray{Float64, 1} ┐
├─────────────────────────────────┴─────────────────────────────── dims ┐
↓ Ti Sampled{Int64} [1, 2, …, 11, 12] ForwardOrdered Irregular Points
└───────────────────────────────────────────────────────────────────────┘
1 0.500064
2 0.499762
3 0.500083
4 0.499985
5 0.500511
6 0.500042
7 0.500003
8 0.500257
9 0.500868
10 0.500874
11 0.498704
12 0.50047
```
Subexpression:
groupmeans = mean.(groups) # Take the monthly mean
Evaluated output:
ERROR: UndefVarError: `groups` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
[1] top-level scope
@ none:1
Expected output:
┌ 12-element DimArray{Float64, 1} ┐
├─────────────────────────────────┴─────────────────────────────── dims ┐
↓ Ti Sampled{Int64} [1, 2, …, 11, 12] ForwardOrdered Irregular Points
└───────────────────────────────────────────────────────────────────────┘
1 0.500064
2 0.499762
3 0.500083
4 0.499985
5 0.500511
6 0.500042
7 0.500003
8 0.500257
9 0.500868
10 0.500874
11 0.498704
12 0.50047
diff =
Warning: Diff output requires color.
┌ 12-element DimArray{Float64, 1} ┐
├─────────────────────────────────┴─────────────────────────────── dims ┐
↓ Ti Sampled{Int64} [1, 2, …, 11, 12] ForwardOrdered Irregular Points
└───────────────────────────────────────────────────────────────────────┘
1 0.500064
2 0.499762
3 0.500083
4 0.499985
5 0.500511
6 0.500042
7 0.500003
8 0.500257
9 0.500868
10 0.500874
11 0.498704
12 0.50047ERROR: UndefVarError: `groups` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
[1] top-level scope
@ none:1
|
|
build:
src/groupby.jl#L273
doctest failure in src/groupby.jl:273-294
```jldoctest groupby; setup = :(using Random; Random.seed!(123))
julia> using DimensionalData, Dates
julia> A = rand(X(1:0.1:20), Y(1:20), Ti(DateTime(2000):Day(3):DateTime(2003)));
julia> groups = groupby(A, Ti => month) # Group by month
metadata = Dict{Symbol, Any}(:groupby => (:Ti => Dates.month))
┌ 12-element DimGroupByArray{DimArray{Float64,3},1} ┐
├───────────────────────────────────────────────────┴───────────── dims ┐
↓ Ti Sampled{Int64} [1, 2, …, 11, 12] ForwardOrdered Irregular Points
├───────────────────────────────────────────────────────────── metadata ┤
Dict{Symbol, Any} with 1 entry:
:groupby => :Ti=>month
├─────────────────────────────────────────────────────────── group dims ┤
↓ X, → Y, ↗ Ti
└───────────────────────────────────────────────────────────────────────┘
1 191×20×32 DimArray
2 191×20×28 DimArray
3 191×20×31 DimArray
⋮
11 191×20×30 DimArray
12 191×20×31 DimArray
```
Subexpression:
groups = groupby(A, Ti => month) # Group by month
Evaluated output:
ERROR: UndefVarError: `A` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
[1] top-level scope
@ none:1
Expected output:
diff =
Warning: Diff output requires color.
ERROR: UndefVarError: `A` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
[1] top-level scope
@ none:1
|
|
build:
src/groupby.jl#L273
doctest failure in src/groupby.jl:273-294
```jldoctest groupby; setup = :(using Random; Random.seed!(123))
julia> using DimensionalData, Dates
julia> A = rand(X(1:0.1:20), Y(1:20), Ti(DateTime(2000):Day(3):DateTime(2003)));
julia> groups = groupby(A, Ti => month) # Group by month
metadata = Dict{Symbol, Any}(:groupby => (:Ti => Dates.month))
┌ 12-element DimGroupByArray{DimArray{Float64,3},1} ┐
├───────────────────────────────────────────────────┴───────────── dims ┐
↓ Ti Sampled{Int64} [1, 2, …, 11, 12] ForwardOrdered Irregular Points
├───────────────────────────────────────────────────────────── metadata ┤
Dict{Symbol, Any} with 1 entry:
:groupby => :Ti=>month
├─────────────────────────────────────────────────────────── group dims ┤
↓ X, → Y, ↗ Ti
└───────────────────────────────────────────────────────────────────────┘
1 191×20×32 DimArray
2 191×20×28 DimArray
3 191×20×31 DimArray
⋮
11 191×20×30 DimArray
12 191×20×31 DimArray
```
Subexpression:
A = rand(X(1:0.1:20), Y(1:20), Ti(DateTime(2000):Day(3):DateTime(2003)));
Evaluated output:
ERROR: UndefVarError: `DateTime` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
Hint: a global variable of this name also exists in Dates.
Stacktrace:
[1] top-level scope
@ none:1
Expected output:
using DimensionalData, Dates
diff =
Warning: Diff output requires color.
using DimensionalData, DatesERROR: UndefVarError: `DateTime` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
Hint: a global variable of this name also exists in Dates.
Stacktrace:
[1] top-level scope
@ none:1
|
|
build:
src/set.jl#L126
doctest failure in src/set.jl:126-137
```jldoctest set
julia> set(da; name=:newname)
┌ 3×4 DimArray{Float64, 2} ┐
├──────────────────────────┴────────────────────────────────────────── dims ┐
↓ custom Sampled{Float64} 10.0:10.0:30.0 ForwardOrdered Regular Points,
→ Z Sampled{Float64} -20.0:10.0:10.0 ForwardOrdered Regular Points
└───────────────────────────────────────────────────────────────────────────┘
↓ → -20.0 -10.0 0.0 10.0
10.0 0.0 0.0 0.0 0.0
20.0 0.0 0.0 0.0 0.0
30.0 0.0 0.0 0.0 0.0
```
Subexpression:
set(da; name=:newname)
Evaluated output:
┌ 3×4 DimArray{Float64, 2} newname ┐
├──────────────────────────────────┴──────────────────────────────── dims ┐
↓ custom Sampled{Float64} 10.0:10.0:30.0 ForwardOrdered Regular Points,
→ Z Sampled{Float64} -20.0:10.0:10.0 ForwardOrdered Regular Points
└─────────────────────────────────────────────────────────────────────────┘
↓ → -20.0 -10.0 0.0 10.0
10.0 0.0 0.0 0.0 0.0
20.0 0.0 0.0 0.0 0.0
30.0 0.0 0.0 0.0 0.0
Expected output:
┌ 3×4 DimArray{Float64, 2} ┐
├──────────────────────────┴────────────────────────────────────────── dims ┐
↓ custom Sampled{Float64} 10.0:10.0:30.0 ForwardOrdered Regular Points,
→ Z Sampled{Float64} -20.0:10.0:10.0 ForwardOrdered Regular Points
└───────────────────────────────────────────────────────────────────────────┘
↓ → -20.0 -10.0 0.0 10.0
10.0 0.0 0.0 0.0 0.0
20.0 0.0 0.0 0.0 0.0
30.0 0.0 0.0 0.0 0.0
diff =
Warning: Diff output requires color.
┌ 3×4 DimArray{Float64, 2} newname ┐
├──────────────────────────┴────────────────────────────────────────── ├──────────────────────────────────┴──────────────────────────────── dims ┐
↓ custom Sampled{Float64} 10.0:10.0:30.0 ForwardOrdered Regular Points,
→ Z Sampled{Float64} -20.0:10.0:10.0 ForwardOrdered Regular Points
└───────────────────────────────────────────────────────────────────────────┘
└─────────────────────────────────────────────────────────────────────────┘
↓ → -20.0 -10.0 0.0 10.0
10.0 0.0 0.0 0.0 0.0
20.0 0.0 0.0 0.0 0.0
30.0 0.0 0.0 0.0 0.0
|
|
build:
src/set.jl#L111
doctest failure in src/set.jl:111-122
```jldoctest set
julia> set(da, :custom => DD.Irregular(10, 12), Z => DD.Regular(9.9))
┌ 3×4 DimArray{Float64, 2} ┐
├──────────────────────────┴────────────────────────────────────────── dims ┐
↓ custom Sampled{Float64} 10.0:10.0:30.0 ForwardOrdered Irregular Points,
→ Z Sampled{Float64} -20.0:10.0:10.0 ForwardOrdered Regular Points
└───────────────────────────────────────────────────────────────────────────┘
↓ → -20.0 -10.0 0.0 10.0
10.0 0.0 0.0 0.0 0.0
20.0 0.0 0.0 0.0 0.0
30.0 0.0 0.0 0.0 0.0
```
Subexpression:
set(da, :custom => DD.Irregular(10, 12), Z => DD.Regular(9.9))
Evaluated output:
ERROR: TypeError: in AbstractSampled, in Sp, expected Sp<:Span, got Type{typeof(span)}
Stacktrace:
[1] Sampled(data::StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64}, order::ForwardOrdered, span::typeof(span), sampling::Points, metadata::NoMetadata)
@ DimensionalData.Dimensions.Lookups ~/work/DimensionalData.jl/DimensionalData.jl/src/Lookups/lookup_arrays.jl:309
[2] rebuild(l::Sampled{Float64, StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64}, ForwardOrdered, Regular{Float64}, Points, NoMetadata}; data::StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64}, order::ForwardOrdered, span::Function, sampling::Points, metadata::NoMetadata, kw::@kwargs{})
@ DimensionalData.Dimensions.Lookups ~/work/DimensionalData.jl/DimensionalData.jl/src/Lookups/lookup_arrays.jl:325
[3] _set_lookup_property(::DimensionalData.Dimensions.Lookups.Safe, lookup::Sampled{Float64, StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64}, ForwardOrdered, Regular{Float64}, Points, NoMetadata}, ::Regular{Float64}, newspan::Irregular{Tuple{Int64, Int64}})
@ DimensionalData.Dimensions.Lookups ~/work/DimensionalData.jl/DimensionalData.jl/src/Lookups/set.jl:174
[4] _set_lookup_property(s::DimensionalData.Dimensions.Lookups.Safe, lookup::Sampled{Float64, StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64}, ForwardOrdered, Regular{Float64}, Points, NoMetadata}, newspan::Irregular{Tuple{Int64, Int64}})
@ DimensionalData.Dimensions.Lookups ~/work/DimensionalData.jl/DimensionalData.jl/src/Lookups/set.jl:148
[5] _set(s::DimensionalData.Dimensions.Lookups.Safe, lookup::Sampled{Float64, StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64}, ForwardOrdered, Regular{Float64}, Points, NoMetadata}, prop::Irregular{Tuple{Int64, Int64}})
@ DimensionalData.Dimensions.Lookups ~/work/DimensionalData.jl/DimensionalData.jl/src/Lookups/set.jl:20
[6] _set(s::DimensionalData.Dimensions.Lookups.Safe, dim::Dim{:custom, Sampled{Float64, StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64}, ForwardOrdered, Regular{Float64}, Points, NoMetadata}}, l::Irregular{Tuple{Int64, Int64}})
@ DimensionalData.Dimensions ~/work/DimensionalData.jl/DimensionalData.jl/src/Dimensions/set.jl:45
[7] _set(s::DimensionalData.Dimensions.Lookups.Safe, dim::Dim{:custom, Sampled{Float64, StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64}, ForwardOrdered, Regular{Float64}, Points, NoMetadata}}, wrapper::Dim{:custom, Irregular{Tuple{Int64, Int64}}})
@ DimensionalData.Dimensions ~/work/DimensionalData.jl/DimensionalData.jl/src/Dimensions/set.jl:43
[8] (::DimensionalData.Dimensions.var"#128#130"{DimensionalData.Dimensions.Lookups.Safe})(d::Dim{:custom, Sampled{Float64, StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64}, ForwardOrdered, Regular{Float64}, Points, NoMetadata}}, w::Dim{:custom, Irregular{Tuple{Int64, Int64}}})
@ DimensionalData.Dimensions ~/work/DimensionalData.jl/DimensionalData.jl/src/Dimensions/set.jl:34
[9] map
@ ./tuple.jl:383 [inlined]
[10] _set(s::DimensionalData.Dimensions.Lookups.Safe, dims::Tuple{Dim{:custom, Sampled{Float64, StepRan
|
|
build:
src/set.jl#L97
doctest failure in src/set.jl:97-107
```jldoctest set
julia> set(da; Z => DD.NoLookup(), :custom => DD.Sampled())
┌ 3×4 DimArray{Float64, 2} ┐
├──────────────────────────┴──────────────────────────────────────── dims ┐
↓ custom Sampled{Float64} 10.0:10.0:30.0 ForwardOrdered Regular Points,
→ Z
└─────────────────────────────────────────────────────────────────────────┘
10.0 0.0 0.0 0.0 0.0
20.0 0.0 0.0 0.0 0.0
30.0 0.0 0.0 0.0 0.0
```
Subexpression:
set(da; Z => DD.NoLookup(), :custom => DD.Sampled())
Evaluated output:
ERROR: TypeError: in Type, in parameter, expected Type, got a value of type Tuple{UnionAll}
Stacktrace:
[1] top-level scope
@ none:1
Expected output:
┌ 3×4 DimArray{Float64, 2} ┐
├──────────────────────────┴──────────────────────────────────────── dims ┐
↓ custom Sampled{Float64} 10.0:10.0:30.0 ForwardOrdered Regular Points,
→ Z
└─────────────────────────────────────────────────────────────────────────┘
10.0 0.0 0.0 0.0 0.0
20.0 0.0 0.0 0.0 0.0
30.0 0.0 0.0 0.0 0.0
diff =
Warning: Diff output requires color.
┌ 3×4 DimArray{Float64, 2} ┐
├──────────────────────────┴──────────────────────────────────────── dims ┐
↓ custom Sampled{Float64} 10.0:10.0:30.0 ForwardOrdered Regular Points,
→ Z
└─────────────────────────────────────────────────────────────────────────┘
10.0 0.0 0.0 0.0 0.0
20.0 0.0 0.0 0.0 0.0
30.0 0.0 0.0 0.0 0.0ERROR: TypeError: in Type, in parameter, expected Type, got a value of type Tuple{UnionAll}
Stacktrace:
[1] top-level scope
@ none:1
|
|
build:
src/set.jl#L82
doctest failure in src/set.jl:82-93
```jldoctest set
julia> set(da, Z => [:a, :b, :c, :d], :custom => [6, 5, 4])
┌ 3×4 DimArray{Float64, 2} ┐
├──────────────────────────┴──────────────────────────────────────── dims ┐
↓ custom Sampled{Int64} [6, 5, 4] ReverseOrdered Regular Points,
→ Z Sampled{Symbol} [:a, :b, :c, :d] ForwardOrdered Regular Points
└─────────────────────────────────────────────────────────────────────────┘
↓ → :a :b :c :d
4 0.0 0.0 0.0 0.0
5 0.0 0.0 0.0 0.0
6 0.0 0.0 0.0 0.0
```
Subexpression:
set(da, Z => [:a, :b, :c, :d], :custom => [6, 5, 4])
Evaluated output:
┌ 3×4 DimArray{Float64, 2} ┐
├──────────────────────────┴────────────────────────────────────────── dims ┐
↓ custom Sampled{Int64} [6, 5, 4] ReverseOrdered Irregular Points,
→ Z Sampled{Symbol} [:a, :b, :c, :d] ForwardOrdered Irregular Points
└───────────────────────────────────────────────────────────────────────────┘
↓ → :a :b :c :d
6 0.0 0.0 0.0 0.0
5 0.0 0.0 0.0 0.0
4 0.0 0.0 0.0 0.0
Expected output:
┌ 3×4 DimArray{Float64, 2} ┐
├──────────────────────────┴──────────────────────────────────────── dims ┐
↓ custom Sampled{Int64} [6, 5, 4] ReverseOrdered Regular Points,
→ Z Sampled{Symbol} [:a, :b, :c, :d] ForwardOrdered Regular Points
└─────────────────────────────────────────────────────────────────────────┘
↓ → :a :b :c :d
4 0.0 0.0 0.0 0.0
5 0.0 0.0 0.0 0.0
6 0.0 0.0 0.0 0.0
diff =
Warning: Diff output requires color.
┌ 3×4 DimArray{Float64, 2} ┐
├──────────────────────────┴──────────────────────────────────────── ├──────────────────────────┴────────────────────────────────────────── dims ┐
↓ custom Sampled{Int64} [6, 5, 4] ReverseOrdered Regular Irregular Points,
→ Z Sampled{Symbol} [:a, :b, :c, :d] ForwardOrdered Regular Irregular Points
└─────────────────────────────────────────────────────────────────────────┘
└───────────────────────────────────────────────────────────────────────────┘
↓ → :a :b :c :d
4 6 0.0 0.0 0.0 0.0
5 0.0 0.0 0.0 0.0
6 4 0.0 0.0 0.0 0.0
|
|
build
Failed to restore: Cache service responded with 422
|