Skip to content

Commit

Permalink
🤖 Format .jl files (#43)
Browse files Browse the repository at this point in the history
Co-authored-by: juliohm <[email protected]>
  • Loading branch information
github-actions[bot] and juliohm authored Jun 21, 2024
1 parent d1f2206 commit bbb4147
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
9 changes: 1 addition & 8 deletions src/desurvey.jl
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,7 @@ function postprocess(table, outdip, outunit, geom, radius)

# fix output units
fixunit(x) = uconvert(outunit, x)
fixunits = Functional(
:FROM => fixunit,
:TO => fixunit,
:AT => fixunit,
:X => fixunit,
:Y => fixunit,
:Z => fixunit
)
fixunits = Functional(:FROM => fixunit, :TO => fixunit, :AT => fixunit, :X => fixunit, :Y => fixunit, :Z => fixunit)

# discard auxiliary SOURCE information
samples = view(table, table.SOURCE .== :INTERVAL, Not(:SOURCE))
Expand Down
6 changes: 5 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ using Test
# changing step method only changes coordinates X, Y, Z
dh2 = desurvey(collar, survey, [assays, lithos], step=:tan, geom=:none)
@test isequal(dh[!, Not([:X, :Y, :Z])], dh2[!, Not([:X, :Y, :Z])])
@test isapprox(dh2.X, [1.0, 1.0, 1.0, 2.169263142065488, 2.4385454135333093, 2.5770334388596177] * u"m", atol=1e-5u"m")
@test isapprox(
dh2.X,
[1.0, 1.0, 1.0, 2.169263142065488, 2.4385454135333093, 2.5770334388596177] * u"m",
atol=1e-5u"m"
)
@test isapprox(
dh2.Y,
[
Expand Down

0 comments on commit bbb4147

Please sign in to comment.