Skip to content

Commit

Permalink
Fix metadata accessors
Browse files Browse the repository at this point in the history
Closes #37
  • Loading branch information
aoles committed Mar 16, 2024
1 parent aa7fb59 commit 1ce1888
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: RBioFormats
Version: 1.3.0
Version: 1.3.1
BioFormats: 6.12.0
Title: R interface to Bio-Formats
Description: An R package which interfaces the OME Bio-Formats Java library to
Expand Down
3 changes: 2 additions & 1 deletion R/metadataAccessors.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ seriesMetadata = function (x, series, ...) .getMetadata(x, series, ...)

.getMetadata = function (x, series, ...) {
## metadata type equals accessor name
type = as.character(sys.call(-1L)[[1L]])
sys_call <- sys.call(-1L)[[1L]]
type = as.character(sys_call[[length(sys_call)]])# account for calls via `::`

metadata = metadata(x)

Expand Down

0 comments on commit 1ce1888

Please sign in to comment.