Skip to content

Commit

Permalink
Update wrappers_images.R
Browse files Browse the repository at this point in the history
  • Loading branch information
keller-mark authored Jul 26, 2024
1 parent 3177e17 commit 61b975f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/wrappers_images.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ MultiImageWrapper <- R6::R6Class("MultiImageWrapper",
#' Create the web server routes and file definition creators.
#' @param dataset_uid The ID for this dataset.
#' @param obj_i The index of this data object within the dataset.
convert_and_save = function(dataset_uid, obj_i) {
#' @param base_dir A base directory to pass into the convert_and_save function of each image wrapper.
convert_and_save = function(dataset_uid, obj_i, base_dir = NA) {
for(image in self$image_wrappers) {
image$convert_and_save(dataset_uid, obj_i)
image$convert_and_save(dataset_uid, obj_i, base_dir = base_dir)
}

# Get the file definition creator functions.
Expand Down

0 comments on commit 61b975f

Please sign in to comment.