spectral-cockpit / opusreader2

Read OPUS binary files from Fourier-Transform Infrared (FT-IR) spectrometers of the company Bruker Optics GmbH & Co. in base R
https://spectral-cockpit.github.io/opusreader2/
MIT License
18 stars 2 forks source link

🏗 Name first level of list returned by `read_opus()` with string containing file name (DSN) #51

Closed philipp-baumann closed 1 year ago

philipp-baumann commented 1 year ago

cc @laura-summerauer

philipp-baumann commented 1 year ago

Hey @laura-summerauer , the feature is ready to be tested :) #83

devtools::install_github("spectral-cockpit/opusreader2", ref = "feat-51-name-first-level-of-list")
library("opusreader2")

file <- opus_file()
files <- c(rep(file, 10)

# or better use your own data :)
data <- read_opus(files)
names(data)
laura-summerauer commented 1 year ago

Wonderful! :) Thanks!

philipp-baumann commented 1 year ago

Hey @laura-summerauer and @ThomasKnecht , after some thoughts and discussions, we can now simplify the naming. So this means the PR for the naming is implemented with DSN base file names.

For more sophisticated filtering with basic metadata, e.g., time stamps, I'll make a separate issue and corresponding PR 😎 this way the development stays focused.