-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from firasalchalabi/animations
Animations, Tests, README, Author
- Loading branch information
Showing
16 changed files
with
225 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
""" | ||
Creates an Axis object to be used by SeisColor, SeisOverlay, SeisWiggle. | ||
""" | ||
# Creates an Axis object to be used by SeisColor, SeisOverlay, SeisWiggle. | ||
function __create_axis(fig) | ||
return Axis(fig, yreversed=true, xautolimitmargin=(0,0), yautolimitmargin=(0,0)) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,79 @@ | ||
using SeisMakie | ||
using SeisProcessing | ||
using Random | ||
using Test | ||
|
||
@testset "SeisMakie.jl" begin | ||
# Write your tests here | ||
|
||
d = SeisLinearEvents() | ||
|
||
dx = 10 | ||
dy = 0.004 | ||
|
||
@testset "SeisWiggleRecipe" begin | ||
gx = [ dx*(i-1) for i=1:size(d,2) ] | ||
# create a random permutation vector to sample gx and d | ||
p = (randsubseq(gx, 0.85) .÷ dx) .+ 1 | ||
gx = gx[p] | ||
|
||
f, ax, wp = seiswiggle(d[:, p], gx=gx, dy=dy, xcur=2, wiggle_trace_increment=4) | ||
|
||
@test true | ||
end | ||
|
||
@testset "SeisImageRecipe" begin | ||
|
||
f, ax, img = seisimage(d, dx=dx, dy=dy, pclip=97, cmap=:viridis) | ||
|
||
@test true | ||
|
||
end | ||
|
||
@testset "SeisOverlayRecipe" begin | ||
|
||
f, ax, ov = seisoverlay(d, dx=dx, dy=dy, xcur=2, wiggle_trace_increment=4, pclip=97, cmap=:viridis) | ||
|
||
@test true | ||
|
||
end | ||
|
||
@testset "SeisFKRecipe" begin | ||
|
||
f, ax, fk = seisfk(d, dx=dx, dy=dy, pclip=97, fmax=90) | ||
|
||
@test true | ||
end | ||
|
||
@testset "SeisAmplitudeRecipe" begin | ||
|
||
f, ax, amp = seisamplitude(d, dy=dy, fmax=90) | ||
|
||
@test true | ||
end | ||
|
||
@testset "SeisPlotTX" begin | ||
gx = [ dx*(i-1) for i=1:size(d,2) ] | ||
# create a random permutation vector to sample gx and d | ||
p = (randsubseq(gx, 0.85) .÷ dx) .+ 1 | ||
gx = gx[p] | ||
f, ax = SeisPlotTX(d[:, p], gx=gx, dy=dy, xcur=2, wiggle_trace_increment=4, style="wiggle") | ||
@test true | ||
f, ax = SeisPlotTX(d, dx=dx, dy=dy, pclip=97, cmap=:viridis, style="image") | ||
@test true | ||
f, ax = SeisPlotTX(d, dx=dx, dy=dy, xcur=2, wiggle_trace_increment=4, pclip=97, cmap=:viridis, style="overlay") | ||
@test true | ||
end | ||
|
||
@testset "SeisPlotFK" begin | ||
f, ax = SeisPlotFK(d, dx=dx, dy=dy, pclip=97, fmax=90) | ||
|
||
@test true | ||
end | ||
|
||
@testset "SeisAmplitude" begin | ||
f, ax = SeisPlotAmplitude(d, dy=dy, fmax=90) | ||
|
||
@test true | ||
end | ||
|
||
end |