Skip to content

Commit

Permalink
the fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kleinschmidt committed Jul 19, 2023
1 parent 5f2fec9 commit b683f19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "OndaEDF"
uuid = "e3ed2cd1-99bf-415e-bb8f-38f4b42a544e"
authors = ["Beacon Biosignals, Inc."]
version = "0.12.0"
version = "0.12.1"

[deps]
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
Expand Down
2 changes: 2 additions & 0 deletions src/export_edf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ function reencode_samples(samples::Samples, sample_type::Type{<:Integer}=Int16)
samples.info.sample_resolution_in_unit,
samples.info.sample_offset_in_unit,
(smin, smax))
# make sure we handle negative resolutions properly!
# smin, smax = extrema((smin, smax))
end
if smin >= typemin(sample_type) && smax <= typemax(sample_type)
# XXX: we're being a bit clever here in order to not allocate a
Expand Down

0 comments on commit b683f19

Please sign in to comment.