From 18648b8afb900a1757355d9ca9390a0e216e0664 Mon Sep 17 00:00:00 2001 From: George Chen <72078254+jiajic@users.noreply.github.com> Date: Sat, 26 Oct 2024 22:01:23 -0400 Subject: [PATCH] fix: make sure images are updated after load --- R/save_load.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/save_load.R b/R/save_load.R index 0ff6afd4..0cdd419c 100644 --- a/R/save_load.R +++ b/R/save_load.R @@ -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, @@ -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]]) }