Skip to content

Commit

Permalink
fix: make sure images are updated after load
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajic committed Oct 27, 2024
1 parent f03d7a9 commit 18648b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/save_load.R
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ loadGiotto <- function(path_to_folder,

## 4. images
# compatibility for pre-v0.3.0
gobject <- .update_image_slot(gobject)
gobject <- .update_image_slot(gobject) # merge largeImages slot to images
gobject <- .load_giotto_images(
gobject = gobject,
path_to_folder = path_to_folder,
Expand Down Expand Up @@ -709,6 +709,7 @@ loadGiotto <- function(path_to_folder,

gobject@images[[img]]@raster_object <- spatRaster
gobject@images[[img]]@file_path <- load_img
gobject@images[[img]] <- .update_giotto_image(gobject@images[[img]])
gobject@images[[img]] <- initialize(gobject@images[[img]])
}

Expand Down

0 comments on commit 18648b8

Please sign in to comment.