Skip to content

Commit

Permalink
Guess peaks peak width being less than zero now logs a warning before…
Browse files Browse the repository at this point in the history
… reverting to the default value (#337)
  • Loading branch information
SpencerFleming committed Oct 18, 2019
1 parent 8548917 commit 43c61e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/GaussianFitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,10 @@ int GaussianFitter::guess_peaks(std::vector<Peak*>* results,
}

if(guess< 0) {
spdlog::warn(
"Guess for peak width less than zero, reverting to default"
);

guess = guess_lessthan_0_default;
}

Expand Down

0 comments on commit 43c61e4

Please sign in to comment.