Skip to content

Commit

Permalink
fix: use interval encoded in file to calculate LCD retention times no…
Browse files Browse the repository at this point in the history
…t `500`
  • Loading branch information
ethanbass committed Dec 14, 2024
1 parent ce549b7 commit d7faa83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/read_shimadzu_lcd.R
Original file line number Diff line number Diff line change
Expand Up @@ -390,10 +390,10 @@ read_sz_chrom <- function(path, stream){
f <- file(path_raw, "rb")
on.exit(close(f))
dat <- data.frame(intensity = decode_sz_block(f))
seek(f,4)
seek(f,4)
interval <- readBin(f, "integer", size = 4,endian = "little")
times <- seq(from = 0, by = 500, length.out=nrow(dat))/60000
seek(f, 4)
seek(f, 4)
interval <- readBin(f, "integer", size = 4, endian = "little")
times <- seq(from = 0, by = interval, length.out = nrow(dat))/60000
rownames(dat) <- times
dat
}
Expand Down

0 comments on commit d7faa83

Please sign in to comment.