Skip to content

Commit

Permalink
Merge branch 'dev' into dev2
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajic committed Aug 30, 2024
2 parents 88bf459 + 704fe66 commit 46916bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/methods-plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,8 @@ setMethod("plot", signature(x = "affine2d", y = "missing"), function(x, ...) {
))]
a$x <- giottoLargeImage@raster_object


# Determine likely image bitdepth
if (is.null(max_intensity)) {
if (is.null(max_intensity) || is.na(max_intensity)) {
bitDepth <- ceiling(log(x = giottoLargeImage@max_intensity, base = 2))
# Assign discovered bitdepth as max_intensity
max_intensity <- 2^bitDepth - 1
Expand Down

0 comments on commit 46916bf

Please sign in to comment.