File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 20
20
matrix :
21
21
version :
22
22
- ' 1.9'
23
- - ' nightly '
23
+ - ' 1 '
24
24
os :
25
25
- ubuntu-latest
26
+ - macos-latest
27
+ - windows-latest
26
28
arch :
27
29
- x64
28
30
steps :
Original file line number Diff line number Diff line change @@ -48,6 +48,13 @@ Scientific type of geometrical data (See Meshes.jl)
48
48
"""
49
49
abstract type Geometrical <: SciType end
50
50
51
+ """
52
+ Tensorial
53
+
54
+ Scientific type of tensorial data (e.g. Vector, Matrix)
55
+ """
56
+ abstract type Tensorial <: SciType end
57
+
51
58
"""
52
59
Temporal
53
60
@@ -114,6 +121,7 @@ scitype(::Type{<:Number}) = Continuous
114
121
scitype (:: Type{<:Integer} ) = Categorical
115
122
scitype (:: Type{<:AbstractChar} ) = Categorical
116
123
scitype (:: Type{<:AbstractString} ) = Categorical
124
+ scitype (:: Type{<:AbstractArray} ) = Tensorial
117
125
scitype (:: Type{<:TimeType} ) = Temporal
118
126
scitype (:: Type{Union{T,Missing}} ) where {T} = scitype (T)
119
127
Original file line number Diff line number Diff line change @@ -30,6 +30,14 @@ const DST = DataScienceTraits
30
30
@test scitype (' a' ) <: DST.Categorical
31
31
@test scitype (" a" ) <: DST.Categorical
32
32
33
+ # Tensorial
34
+ @test scitype (Vector) <: DST.Tensorial
35
+ @test scitype (Matrix) <: DST.Tensorial
36
+ @test scitype (Array) <: DST.Tensorial
37
+ @test scitype (rand (2 )) <: DST.Tensorial
38
+ @test scitype (rand (2 , 2 )) <: DST.Tensorial
39
+ @test scitype (rand (2 , 2 , 2 )) <: DST.Tensorial
40
+
33
41
# Unknown
34
42
@test scitype (Nothing) <: DST.Unknown
35
43
@test scitype (Union{}) <: DST.Unknown
You can’t perform that action at this time.
0 commit comments