Skip to content

Commit

Permalink
Fix tests for latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
juliohm committed Feb 11, 2025
1 parent d947604 commit 80193de
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 29 deletions.
2 changes: 0 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ NearestNeighbors = "b8a86587-4115-5ab1-83bc-aa920d37bbce"
OhMyThreads = "67456a42-1dca-4109-a031-0a68de7e3ad5"
Optim = "429524aa-4258-5aef-a3af-852621145aeb"
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Setfield = "efcf1570-3423-57d1-acb7-fd33fddbac46"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
Expand Down Expand Up @@ -43,7 +42,6 @@ NearestNeighbors = "0.4"
OhMyThreads = "0.5, 0.6, 0.7"
Optim = "1.7"
PrecompileTools = "1.2"
Printf = "1.9"
Random = "1.9"
Setfield = "1.0"
StaticArrays = "1.9"
Expand Down
1 change: 0 additions & 1 deletion src/GeoStatsFunctions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ using Statistics
using Setfield
using Unitful
using Random
using Printf

import Base: merge, +, *
import LinearAlgebra: issymmetric
Expand Down
16 changes: 3 additions & 13 deletions test/empirical/transiosurf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,9 @@
img = readdlm(joinpath(datadir, "anisotropic.tsv"))
data = georef((c=[v < 0 ? 1 : 2 for v in img],))
t = EmpiricalTransiogramSurface(data, :c, maxlag=50.0)
@test sprint(show, t) == "EmpiricalTransiogramSurface"
@test sprint(show, t) == "EmpiricalTransiogramSurface(nangs: 100, nlags: 20)"
@test sprint(show, MIME"text/plain"(), t) == """
EmpiricalTransiogramSurface
100 angles
└─0.00°
└─3.64°
└─7.27°
└─10.91°
└─14.55°
└─345.45°
└─349.09°
└─352.73°
└─356.36°
└─360.00°"""
├─ nangs: 100
└─ nlags: 20"""
end
16 changes: 3 additions & 13 deletions test/empirical/variosurf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,9 @@
img = readdlm(joinpath(datadir, "anisotropic.tsv"))
data = georef((z=img,))
g = EmpiricalVariogramSurface(data, :z, maxlag=50.0)
@test sprint(show, g) == "EmpiricalVariogramSurface"
@test sprint(show, g) == "EmpiricalVariogramSurface(nangs: 50, nlags: 20)"
@test sprint(show, MIME"text/plain"(), g) == """
EmpiricalVariogramSurface
50 angles
└─0.00°
└─3.67°
└─7.35°
└─11.02°
└─14.69°
└─165.31°
└─168.98°
└─172.65°
└─176.33°
└─180.00°"""
├─ nangs: 50
└─ nlags: 20"""
end

0 comments on commit 80193de

Please sign in to comment.