Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:redwil:15.4
openms
fix-isnan-undeclared.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-isnan-undeclared.patch of Package openms
From 9264cfd89cd55dd58898f29b0ea83e1235e43490 Mon Sep 17 00:00:00 2001 From: amit0617 <71893015+Amit0617@users.noreply.github.com> Date: Sat, 12 Mar 2022 22:20:50 +0530 Subject: [PATCH 1/2] fix: 5864, isnan error --- src/openms/source/QC/MQEvidenceExporter.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/openms/source/QC/MQEvidenceExporter.cpp b/src/openms/source/QC/MQEvidenceExporter.cpp index f7a970908ec..6b85c71f6e3 100644 --- a/src/openms/source/QC/MQEvidenceExporter.cpp +++ b/src/openms/source/QC/MQEvidenceExporter.cpp @@ -41,10 +41,10 @@ #include <OpenMS/SYSTEM/File.h> #include <QtCore/QDir> -#include <boost/math/special_functions/fpclassify.hpp> // isnan +#include <cmath> // isnan #include <fstream> -#include <boost/math/special_functions/fpclassify.hpp> // isnan +#include <cmath> // isnan #include <fstream> using namespace OpenMS; @@ -315,7 +315,7 @@ void MQEvidence::exportRowFromFeature_( const double& uncalibrated_mz_error_ppm = ptr_best_hit->getMetaValue("uncalibrated_mz_error_ppm", NAN); const double& calibrated_mz_error_ppm = ptr_best_hit->getMetaValue("calibrated_mz_error_ppm", NAN); - if (isnan(uncalibrated_mz_error_ppm) && isnan(calibrated_mz_error_ppm)) + if (std::isnan(uncalibrated_mz_error_ppm) && std::isnan(calibrated_mz_error_ppm)) { file_ << "NA" << "\t"; // Mass error [ppm] file_ << "NA" << "\t"; // Uncalibrated Mass error [ppm] @@ -324,7 +324,7 @@ void MQEvidence::exportRowFromFeature_( file_ << "NA" << "\t"; // Uncalibrated - Calibrated m/z [ppm] file_ << "NA" << "\t"; // Uncalibrated - Calibrated m/z [mDa] } - else if (isnan(calibrated_mz_error_ppm)) + else if (std::isnan(calibrated_mz_error_ppm)) { file_ << "NA" << "\t"; // Mass error [ppm] file_ << uncalibrated_mz_error_ppm << "\t"; // Uncalibrated Mass error [ppm] @@ -333,7 +333,7 @@ void MQEvidence::exportRowFromFeature_( file_ << "NA" << "\t"; // Uncalibrated - Calibrated m/z [ppm] file_ << "NA" << "\t"; // Uncalibrated - Calibrated m/z [mDa] } - else if (isnan(uncalibrated_mz_error_ppm)) + else if (std::isnan(uncalibrated_mz_error_ppm)) { file_ << calibrated_mz_error_ppm << "\t"; // Mass error [ppm] file_ << "NA" << "\t"; // Uncalibrated Mass error [ppm] From 8bd42e7d799e4c1f8c0dfb1d79c60254384a17fd Mon Sep 17 00:00:00 2001 From: AMIT KUMAR MISHRA <71893015+Amit0617@users.noreply.github.com> Date: Mon, 14 Mar 2022 12:45:00 +0530 Subject: [PATCH 2/2] Update MQEvidenceExporter.cpp removed include duplicates --- src/openms/source/QC/MQEvidenceExporter.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/openms/source/QC/MQEvidenceExporter.cpp b/src/openms/source/QC/MQEvidenceExporter.cpp index 6b85c71f6e3..c3889026409 100644 --- a/src/openms/source/QC/MQEvidenceExporter.cpp +++ b/src/openms/source/QC/MQEvidenceExporter.cpp @@ -44,8 +44,6 @@ #include <cmath> // isnan #include <fstream> -#include <cmath> // isnan -#include <fstream> using namespace OpenMS;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor