Skip to content

Commit

Permalink
Fix tests from SeisIO v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tclements committed Jul 14, 2020
1 parent 5649129 commit 0d71552
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions test/test_slicing.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# test slicing of Data

C = SeisIO.RandSeis.randSeisChannel(s=true,c=false,nx=100000,fs_min=1.)
S = SeisIO.RandSeis.randSeisData(s=1.,c=0.,nx=100000,fs_min=1.)[1:1]
ungap!(C)
ungap!(S)
C = SeisChannel()
S = SeisData(1)
C.x = rand(100000)
starttime = d2u(DateTime(Date(now())))
endtime = starttime + length(C.x) / fs - 1 / fs
fs = 10.
C.fs = fs
S.fs[1] = fs
S.x[1] = rand(100000)
C.t = [1 starttime * 1e6;length(C.x) 0]
S.t[1] = [1 starttime * 1e6;length(C.x) 0]
C.loc = GeoLoc()
S.loc[1] = GeoLoc()

Expand Down

0 comments on commit 0d71552

Please sign in to comment.