File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -788,13 +788,13 @@ void RcppPwiz::addSpectrumList(MSData& msd,
788788 // precursor scan is not available (e.g. after MS level filtering).
789789 spct.precursors .resize (1 );
790790 Precursor& prec = spct.precursors .front ();
791- if (collisionEnergy[i] != 0 ) {
791+ if (! std::isnan (collisionEnergy[i]) && collisionEnergy[i] != 0 ) {
792792 prec.activation .set (MS_collision_induced_dissociation);
793793 prec.activation .set (MS_collision_energy, collisionEnergy[i],
794794 UO_electronvolt);
795795 }
796796 // EAD
797- if (electronBeamEnergy[i] != 0 ) {
797+ if (! std::isnan (electronBeamEnergy[i]) && electronBeamEnergy[i] != 0 ) {
798798 prec.activation .set (MS_electron_activated_dissociation);
799799 prec.activation .set (MS_electron_beam_energy, electronBeamEnergy[i],
800800 UO_electronvolt);
You can’t perform that action at this time.
0 commit comments