Skip to content

Commit

Permalink
Fix incorrectly thrown error when applying no frequency sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
nHackel committed Sep 20, 2023
1 parent 42d9dc9 commit a690f42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FrequencyFilter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,12 @@ function filterFrequenciesByStepsize!(indices::Vector{CartesianIndex{2}}, stepsi
filter!(x -> in(x[1], stepIndices), indices)
end

function sortFrequencies!(indices::Vector{CartesianIndex{2}}, f::MPIFile; numPeriodGrouping = 1, stepsize = 1, sortBySNR = false, sortByMixFactors = false)
function sortFrequencies(indices::Vector{CartesianIndex{2}}, f::MPIFile; numPeriodGrouping = 1, stepsize = 1, sortBySNR = false, sortByMixFactors = false)
if sortBySNR && !sortByMixFactors
indices = sortFrequenciesBySNR(indices, f, numPeriodGrouping = numPeriodGrouping, stepsize = stepsize)
elseif !sortBySNR && sortByMixFactors
indices = sortFrequenciesByMixFactors(indices, f, numPeriodGrouping = numPeriodGrouping)
else
elseif sortBySNR && sortByMixFactors
error("Can not apply multiple sorting algorithms to frequencies")
end
return indices
Expand Down

2 comments on commit a690f42

@nHackel
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/91758

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.13.0 -m "<description of version>" a690f423ae28df1ffb4098447f85dbde8cec4f2b
git push origin v0.13.0

Please sign in to comment.