Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
KronosTheLate authored Apr 11, 2024
1 parent 808e242 commit 8f29332
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/peakwidth.jl
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ function peakwidths!(pks::NamedTuple; strict=true, relheight=0.5, min=nothing, m
"Argument `pks` is expected to have prominences (`:proms`) already calculated. \nExample fix: `peakwidths!(peakproms!(pks))`"))
if xor(hasproperty(pks, :widths), hasproperty(pks, :edges))
hasproperty(pks, :widths) ?
throw(ArgumentError("Argument `pks` is has property `:widths`, but not field `:edges`. As functions from Peaks.jl only ever add both, this implies unexpected tampering with the peaks provided. To avoid unexpected behaviour, this is an error." )) :
throw(ArgumentError("Argument `pks` is has property `:edges`, but not field `:widths`. As functions from Peaks.jl only ever add both, this implies unexpected tampering with the peaks provided. To avoid unexpected behaviour, this is an error." ))
throw(ArgumentError("Argument `pks` has property `:widths`, but not field `:edges`. As functions from Peaks.jl only ever add both, this implies unexpected tampering with the peaks provided. To avoid unexpected behaviour, this is an error." )) :
throw(ArgumentError("Argument `pks` has property `:edges`, but not field `:widths`. As functions from Peaks.jl only ever add both, this implies unexpected tampering with the peaks provided. To avoid unexpected behaviour, this is an error." ))
end
if !hasproperty(pks, :widths)
# Wait to filter until after merging `pks`
Expand Down

0 comments on commit 8f29332

Please sign in to comment.