Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanbass committed Aug 10, 2023
1 parent ebd7bd4 commit e4ab726
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: chromConverter
Title: Chromatographic File Converter
Version: 0.4.2
Version: 0.4.3
Authors@R: c(
person(given = "Ethan", family = "Bass", email = "[email protected]",
role = c("aut", "cre"),
Expand Down
6 changes: 5 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
## chromConverter 0.4.3

* Fixed bug in `chemstation_ch` parser ([#17](https://github.com/ethanbass/chromConverter/issues/17))

## chromConverter 0.4.2

Added support for parsing "Waters" ascii (`.arw`) PDA files.
* Added support for parsing "Waters" ascii (`.arw`) PDA files.

## chromConverter 0.4.1

Expand Down
3 changes: 3 additions & 0 deletions R/read_chemstation_ch.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ read_chemstation_ch <- function(path, format_out = c("matrix","data.frame"),

seek(f, offsets$intercept, "start")
intercept <- readBin(f, "double", n = 1, endian = "big", size = 8)
if (is.na(intercept)){
intercept <- 0
}

seek(f, offsets$scaling_factor, "start")
scaling_factor <- readBin(f, "double", n = 1, endian = "big", size = 8)
Expand Down
2 changes: 1 addition & 1 deletion inst/CITATION
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ citEntry(
title = "chromConverter: chromatographic file converter",
author = "Ethan Bass",
year = "2023",
version = "version 0.4.2",
version = "version 0.4.3",
doi = "10.5281/zenodo.6792521",
url = "https://ethanbass.github.io/chromConverter/",
textVersion = paste("Bass, E. (2023).",
Expand Down
3 changes: 2 additions & 1 deletion man/sp_converter.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion man/uv_converter.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e4ab726

Please sign in to comment.