Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
juliohm committed Oct 18, 2024
1 parent bc5a8de commit 42dcb23
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
[compat]
CategoricalArrays = "0.10"
CoDa = "1.0"
DataScienceTraits = "0.4"
DataScienceTraits = "1.0"
Distances = "0.10"
Statistics = "1.9"
Tables = "1.5"
Expand Down
6 changes: 1 addition & 5 deletions src/TableDistances.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,8 @@ using Tables
using Distances
using Statistics
using DataScienceTraits
using CategoricalArrays

using DataScienceTraits: Continuous
using DataScienceTraits: Categorical
using DataScienceTraits: Compositional
using DataScienceTraits: isordered
using CategoricalArrays: levelcode
using CoDa: Aitchison, norm

import Distances: pairwise, result_type
Expand Down
2 changes: 1 addition & 1 deletion src/distances.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ result_type(::UnorderedCategDistance, x, y) = Bool

default_distance(x) = default_distance(elscitype(x), x)
default_distance(::Type{Continuous}, x) = Euclidean()
default_distance(::Type{Categorical}, x) = isordered(x) ? OrederedCategDistance() : UnorderedCategDistance()
default_distance(::Type{Categorical}, x) = isordered(categorical(x)) ? OrederedCategDistance() : UnorderedCategDistance()
default_distance(::Type{Compositional}, x) = Aitchison()

function default_distances(table)
Expand Down

2 comments on commit 42dcb23

@juliohm
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error while trying to register: Version 0.4.4 already exists

Please sign in to comment.