Skip to content

Commit 3636c93

Browse files
authored
Merge pull request #10 from OkonSamuel/dev
update ScientificTypes to ScientificTypesBase
2 parents b5c8be1 + 10f0c75 commit 3636c93

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name = "StatisticalTraits"
22
uuid = "64bff920-2084-43da-a3e6-9bb72801c0c9"
33
authors = ["Anthony D. Blaom <[email protected]>"]
4-
version = "1.1.0"
4+
version = "1.1.1"
55

66
[deps]
7-
ScientificTypes = "321657f4-b219-11e9-178b-2701a2544e81"
7+
ScientificTypesBase = "30f210dd-8aff-4c5f-94ba-8e64358c1161"
88

99
[compat]
10-
ScientificTypes = "^1"
10+
ScientificTypesBase = "^1"
1111
julia = "^1"
1212

1313
[extras]

src/StatisticalTraits.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module StatisticalTraits
22

3-
using ScientificTypes
3+
using ScientificTypesBase
44
import Base.instances
55

66
## CONSTANTS
@@ -125,7 +125,7 @@ snakecase(s::Symbol) = Symbol(snakecase(string(s)))
125125
## TRAITS
126126

127127
# The following can return any scientific type, that is, any type
128-
# defined in the package ScientificTypes.jl, and any ordinary type
128+
# defined in the package ScientificTypesBase.jl, and any ordinary type
129129
# that functions as a scientific type (eg, `Missing`). Here "target"
130130
# is a synonym for "labels", as in supervised learning; "input" is a
131131
# synonym for "features":
@@ -207,11 +207,11 @@ traits that are meaninful for the object.
207207
*Note on overloading.* This method can be overloaded directly, as in
208208
`info(X::SomeAbstractType) = ...` or, using `info(X,
209209
::Val{:some_trait}) = ...` where `:some_trait` is a key of
210-
`ScientificTypes.TRAIT_FUNCTION_GIVEN_NAME` (such as `:is_measure`
210+
`ScientificTypesBase.TRAIT_FUNCTION_GIVEN_NAME` (such as `:is_measure`
211211
with value `is_measure`).
212212
213213
"""
214-
info(X) = info(X, Val(ScientificTypes.trait(X)))
214+
info(X) = info(X, Val(ScientificTypesBase.trait(X)))
215215
info(X, ::Val{:other}) = NamedTuple()
216216

217217
end # module

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Test
22
using StatisticalTraits
3-
using ScientificTypes
3+
using ScientificTypesBase
44
import SparseArrays
55

66
module Fruit

0 commit comments

Comments
 (0)