Skip to content

Commit

Permalink
adapt #67 trailer values
Browse files Browse the repository at this point in the history
  • Loading branch information
cpanse committed Nov 1, 2023
1 parent efe9edc commit 33d3573
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions inst/NEWS.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@

\newcommand{\ghit}{\href{https://github.com/fgcz/rawrr/issues/#1}{##1}}

\section{Changes in version 1.11 (2023-11-01)}{
\itemize{
\item Fix index error \ghit{67}.
}
}


\section{Changes in version 1.9.2 (2023-10-24)}{
\itemize{
\item Download RawFileReader DLLs from \url{https://github.com/thermofisherlsms/RawFileReader} \ghit{66}.
Expand Down
2 changes: 1 addition & 1 deletion inst/rawrrassembly/rawrr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ public static void WriteTrailerValues(this IRawDataPlus rawFile, string label)
return;
}

for (int scanNumber = rawFile.RunHeaderEx.FirstSpectrum; scanNumber < rawFile.RunHeaderEx.LastSpectrum; scanNumber++)
foreach (int scanNumber in Enumerable.Range(rawFile.RunHeaderEx.FirstSpectrum, rawFile.RunHeaderEx.LastSpectrum))
{
var scanTrailer = rawFile.GetTrailerExtraInformation(scanNumber);
Console.WriteLine(scanTrailer.Values.ToArray()[idx]);
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-index.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ test_that("check readIndex.", {
rawrr::readIndex() |>
rawrr::validate_rawrrIndex()

expect_equivalent(dim(x) == c(573, 9),
expect_equivalent(dim(x) == c(574, 9),
c(TRUE, TRUE))
expect_true(is.data.frame(x))
IndexColNames <- c("scan", "scanType", "StartTime", "precursorMass",
Expand Down

0 comments on commit 33d3573

Please sign in to comment.