Skip to content

Commit d7faa83

Browse files
committed
fix: use interval encoded in file to calculate LCD retention times not 500
1 parent ce549b7 commit d7faa83

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

R/read_shimadzu_lcd.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -390,10 +390,10 @@ read_sz_chrom <- function(path, stream){
390390
f <- file(path_raw, "rb")
391391
on.exit(close(f))
392392
dat <- data.frame(intensity = decode_sz_block(f))
393-
seek(f,4)
394-
seek(f,4)
395-
interval <- readBin(f, "integer", size = 4,endian = "little")
396-
times <- seq(from = 0, by = 500, length.out=nrow(dat))/60000
393+
seek(f, 4)
394+
seek(f, 4)
395+
interval <- readBin(f, "integer", size = 4, endian = "little")
396+
times <- seq(from = 0, by = interval, length.out = nrow(dat))/60000
397397
rownames(dat) <- times
398398
dat
399399
}

0 commit comments

Comments
 (0)