Skip to content

Commit

Permalink
Minor cleanups.
Browse files Browse the repository at this point in the history
  • Loading branch information
PMSeitzer committed Jun 25, 2019
1 parent 6fe22a0 commit 3fab602
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/maven/background_peaks_update.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ BackgroundPeakUpdate::BackgroundPeakUpdate(QWidget*) {
keepFoundGroups=true;
showProgressFlag=true;

mzBinStep=0.01;
mzBinStep=static_cast<float>(0.01);
rtStepSize=20;
ppmMerge=30;
avgScanTime=0.2;
avgScanTime=static_cast<float>(0.2);

limitGroupCount=INT_MAX;

Expand Down Expand Up @@ -57,7 +57,7 @@ BackgroundPeakUpdate::BackgroundPeakUpdate(QWidget*) {

//triple quad matching options
amuQ1=0.25;
amuQ3=0.3;
amuQ3=static_cast<float>(0.3);


//fragmentaiton matching
Expand All @@ -72,7 +72,7 @@ BackgroundPeakUpdate::~BackgroundPeakUpdate() {

void BackgroundPeakUpdate::run(void) {

if(mainwindow == NULL) { quit(); return; }
if(!mainwindow) { quit(); return; }
_stopped = false;

if ( samples.size() == 0) samples = mainwindow->getSamples(); //get samples
Expand Down Expand Up @@ -396,8 +396,8 @@ void BackgroundPeakUpdate::processSlices(vector<mzSlice*>&slices, string setName
int peakCount=0;

QSettings* settings = mainwindow->getSettings();
amuQ1 = settings->value("amuQ1").toDouble();
amuQ3 = settings->value("amuQ3").toDouble();
amuQ1 = settings->value("amuQ1").toFloat();
amuQ3 = settings->value("amuQ3").toFloat();
baseline_smoothingWindow = settings->value("baseline_smoothing").toInt();
baseline_dropTopX = settings->value("baseline_quantile").toInt();

Expand Down

0 comments on commit 3fab602

Please sign in to comment.