File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
src/main/java/edu/ucsd/msjava/parser Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -183,8 +183,19 @@ public Spectrum readSpectrum(LineReader lineReader) {
183
183
activation = ActivationMethod .get (activationName );
184
184
spec .setActivationMethod (activation );
185
185
} else if (buf .startsWith ("RTINSECONDS" )) {
186
+ // This could be a single time:
187
+ // RTINSECONDS=347.9825
188
+
189
+ // Or a time range
190
+ // RTINSECONDS=200.1054-204.3903
191
+
186
192
String [] token = buf .substring (buf .indexOf ("=" ) + 1 ).split ("\\ s+" );
187
- elutionTimeSeconds = Float .valueOf (token [0 ]);
193
+ int dashIndex = token [0 ].indexOf ("-" );
194
+
195
+ if (dashIndex > 0 )
196
+ elutionTimeSeconds = Float .valueOf (token [0 ].substring (0 , dashIndex ));
197
+ else
198
+ elutionTimeSeconds = Float .valueOf (token [0 ]);
188
199
}
189
200
// else if(buf.startsWith("TOL="))
190
201
// {
You can’t perform that action at this time.
0 commit comments