@@ -5,30 +5,16 @@ export Convention
5
5
6
6
# re-export-able types and methods
7
7
export Scientific, Found, Unknown, Known, Finite, Infinite,
8
- OrderedFactor, Multiclass, Count, Continuous, Textual,
9
- Binary, ColorImage, GrayImage, Image, Table
8
+ OrderedFactor, Multiclass, Count, Continuous,
9
+ Time, Day, Instant, Textual, Binary,
10
+ ColorImage, GrayImage, Image, Table
10
11
export scitype, scitype_union, elscitype, nonmissing, trait
11
12
12
13
# utils (should not be re-exported)
13
14
export TRAIT_FUNCTION_GIVEN_NAME, set_convention
14
15
15
16
# -------------------------------------------------------------------
16
17
# Scientific Types
17
- #
18
- # Found
19
- # ├─ Known
20
- # │ ├─ Finite
21
- # │ │ ├─ Multiclass
22
- # │ │ └─ OrderedFactor
23
- # │ ├─ Infinite
24
- # │ │ ├─ Continuous
25
- # │ │ └─ Count
26
- # │ ├─ Image
27
- # │ │ ├─ ColorImage
28
- # │ │ └─ GrayImage
29
- # │ └─ Textual
30
- # └─ Unknown
31
- #
32
18
33
19
abstract type Found end
34
20
abstract type Known <: Found end
@@ -37,6 +23,7 @@ struct Unknown <: Found end
37
23
abstract type Infinite <: Known end
38
24
abstract type Finite{N} <: Known end
39
25
abstract type Image{W,H} <: Known end
26
+ abstract type Time <: Known end
40
27
struct Textual <: Known end
41
28
struct Table{K} <: Known end
42
29
@@ -46,6 +33,9 @@ struct Count <: Infinite end
46
33
struct Multiclass{N} <: Finite{N} end
47
34
struct OrderedFactor{N} <: Finite{N} end
48
35
36
+ struct Day <: Time end
37
+ struct Instant <: Time end
38
+
49
39
struct GrayImage{W,H} <: Image{W,H} end
50
40
struct ColorImage{W,H} <: Image{W,H} end
51
41
0 commit comments