Skip to content

Commit df29952

Browse files
committed
Autoformatter
1 parent af7a5a8 commit df29952

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/XDF.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ function dejitter(stream::Dict; max_time::Float64=1.0, max_samples::Int=500)
220220
stream["nominal_srate"] = 0 # Recalculated if possible
221221
stream["segments"] = []
222222
time = stream["time"]
223-
breaks = [1; findall(diff(time) .> min.(max_time, max_samples .* (1 / srate)));]
223+
breaks = [1; findall(diff(time) .> min.(max_time, max_samples .* (1 / srate)))]
224224
seg_starts = breaks
225225
seg_ends = [breaks[2:end] .- 1; nsamples]
226226
for (start, stop) in zip(seg_starts, seg_ends)

test/runtests.jl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,17 @@ end
7878
@testset "strings" begin
7979
file = "test/testdata/test_chunk3.xdf"
8080
@testset "strings.sha256" begin
81-
open(file) do f
82-
@test bytes2hex(sha256(f)) == "c730991efa078906117aa2accdca5f0ea11c54f43c3884770eba21e5a72edb82"
81+
open(file) do f
82+
@test bytes2hex(sha256(f)) ==
83+
"c730991efa078906117aa2accdca5f0ea11c54f43c3884770eba21e5a72edb82"
8384
end
8485
end
8586
@testset "strings.read_xdf" begin
86-
import XDF
87+
using XDF: XDF
8788
streams = XDF.read_xdf(file)
8889
end
8990
@testset "strings.dejitter" begin
90-
import XDF
91+
using XDF: XDF
9192
streams = XDF.read_xdf(file)
9293
s1 = streams[3735928559]
9394
@test s1["type"] == "Marker"
@@ -107,4 +108,4 @@ end
107108
@test sgs[1] == [(1, 1)]
108109
@test sgs[2] == [(1, 1)]
109110
end
110-
end
111+
end

0 commit comments

Comments
 (0)