Skip to content

Commit

Permalink
Replace Transducers.jl by OhMyThreads.jl (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliohm authored Aug 7, 2024
1 parent ca2426d commit 001ec1e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Meshes = "eacbb407-ea5a-433e-ab97-5258b1ca43fa"
NearestNeighbors = "b8a86587-4115-5ab1-83bc-aa920d37bbce"
OhMyThreads = "67456a42-1dca-4109-a031-0a68de7e3ad5"
Optim = "429524aa-4258-5aef-a3af-852621145aeb"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Setfield = "efcf1570-3423-57d1-acb7-fd33fddbac46"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
Transducers = "28d57a85-8fef-5791-bfe6-a80928e7c999"
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"

[weakdeps]
Expand All @@ -35,12 +35,12 @@ LinearAlgebra = "1.9"
Makie = "0.21"
Meshes = "0.47 - 0.48"
NearestNeighbors = "0.4"
OhMyThreads = "0.5"
Optim = "1.7"
Printf = "1.9"
Random = "1.9"
Setfield = "1.0"
Statistics = "1.9"
Tables = "1.6"
Transducers = "0.4"
Unitful = "1.11"
julia = "1.9"
2 changes: 1 addition & 1 deletion src/GeoStatsFunctions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ using Distances
using Bessels: gamma, besselk
using InteractiveUtils: subtypes
using NearestNeighbors: MinkowskiMetric
using Transducers: Map, foldxt
using OhMyThreads: tmapreduce
using LinearAlgebra
using Statistics
using Setfield
Expand Down
2 changes: 1 addition & 1 deletion src/empirical/partition.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function EmpiricalVariogram(partition::Partition, var₁, var₂=var₁; kwargs.
@assert !isempty(filtered) "invalid partition of geospatial data"

γ(d) = EmpiricalVariogram(d, var₁, var₂; kwargs...)
foldxt(merge, Map(γ), collect(filtered))
tmapreduce(γ, merge, collect(filtered))
end

"""
Expand Down
2 changes: 1 addition & 1 deletion src/empirical/varioplane.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function EmpiricalVarioplane(
dir = DirectionPartition(cos(θ) * u + sin(θ) * v, tol=dtol)

γ(plane) = EmpiricalVariogram(partition(rng, plane, dir), var₁, var₂; kwargs...)
foldxt(merge, Map(γ), collect(planes))
tmapreduce(γ, merge, collect(planes))
end

EmpiricalVarioplane(collect(θs), γs)
Expand Down

0 comments on commit 001ec1e

Please sign in to comment.