Skip to content

Commit

Permalink
Update methods-plot.R
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajic committed Aug 30, 2024
1 parent 7b9f80e commit 73e36b9
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 73e36b9

Please sign in to comment.