Skip to content

Commit

Permalink
Drop TableOperations.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
juliohm committed Apr 14, 2022
1 parent deaf102 commit 1cdf62f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
6 changes: 2 additions & 4 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "TableDistances"
uuid = "e5d66e97-8c70-46bb-8b66-04a2d73ad782"
authors = ["Júlio Hoffimann <julio.hoffimann@gmail.com>", "José Augusto <jose.augusto@impa.br>"]
version = "0.1.4"
version = "0.2.0"

[deps]
CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597"
Expand All @@ -10,16 +10,14 @@ Distances = "b4f34e82-e78d-54a5-968a-f98e89d6e8f7"
ScientificTypes = "321657f4-b219-11e9-178b-2701a2544e81"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
StringDistances = "88034a9c-02f8-509d-84a9-84ec65e18404"
TableOperations = "ab02a1b2-a7df-11e8-156e-fb1833f50b87"
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"

[compat]
CategoricalArrays = "0.10"
CoDa = "0.7, 0.8, 0.9"
CoDa = "0.10"
Distances = "0.10"
ScientificTypes = "2.3, 3.0"
StringDistances = "0.11"
TableOperations = "1.1"
Tables = "1.5"
julia = "1.6"

Expand Down
1 change: 0 additions & 1 deletion src/TableDistances.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module TableDistances

# basic imports
using Tables
using TableOperations
using ScientificTypes
using Distances
using Statistics
Expand Down
8 changes: 4 additions & 4 deletions src/normalizations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ default_normalization(::Type{<:Compositional}) =
default_normalization(::Type) = nothing

function normalize(tables...)
partitions = Tables.partitioner(collect(tables))
longtable = TableOperations.joinpartitions(partitions)
colnames = Tables.columnnames(longtable)
scitypes = schema(longtable).scitypes
rtables = Tables.rowtable.(tables)
longtable = Tables.columntable(reduce(vcat, rtables))
colnames = Tables.columnnames(longtable)
scitypes = schema(longtable).scitypes

constants = map(zip(colnames, scitypes)) do (c, s)
x = Tables.getcolumn(longtable, c)
Expand Down

2 comments on commit 1cdf62f

@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.

Registration pull request created: JuliaRegistries/General/58502

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.0 -m "<description of version>" 1cdf62f7ff1b21612cbb179c7537385e2da11235
git push origin v0.2.0

Please sign in to comment.