Skip to content

Commit

Permalink
Update src/export_edf.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Dave Kleinschmidt <[email protected]>
  • Loading branch information
ericphanson and kleinschmidt authored Oct 16, 2023
1 parent f091fb2 commit 83e96fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/export_edf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,7 @@ function reencode_samples(samples::Samples, sample_type::Type{<:Integer}=Int16)
smin, smax = extrema(samples.data)
# If the input is flat, normalize to zero and one
if smin == smax
smax = one(smax)
smin = zero(smin)
smax = smin + one(smax)
end

emin, emax = typemin(sample_type), typemax(sample_type)
Expand Down

0 comments on commit 83e96fe

Please sign in to comment.