Skip to content

Commit

Permalink
fix for sprintf numerics issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajic committed May 28, 2024
1 parent 316695b commit c0f5e4d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: GiottoVisuals
Title: Visuals for the Giotto spatial biology analysis ecosystem
Version: 0.2.2
Version: 0.2.3
Authors@R: c(
person("Ruben", "Dries", email = "[email protected]",
role = c("aut", "cre"), comment = c(ORCID = "0000-0001-7650-7754")),
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

# GiottoVisuals 0.2.3 (2024/05/28)

## bug fixes
- hotfix for sprintf numerics usage %d -> %f

# GiottoVisuals 0.2.2 (2024/05/22)

## breaking changes
Expand Down
4 changes: 2 additions & 2 deletions R/gg_annotation_raster.R
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ setMethod(
}

vmsg(.is_debug = TRUE,
sprintf("img auto_res: [A] | area: %d | max: %d",
sprintf("img auto_res: [A] | area: %f | max: %f",
crop_area_px, max_crop))

crop_img <- terra::crop(
Expand All @@ -305,7 +305,7 @@ setMethod(
if (scalef > max_resample_scale) scalef <- max_resample_scale

vmsg(.is_debug = TRUE,
sprintf("img auto_res: [B] | scalef: %d | max_scale: %d",
sprintf("img auto_res: [B] | scalef: %f | max_scale: %f",
scalef, max_resample_scale))

oversample_img <- terra::spatSample(
Expand Down

0 comments on commit c0f5e4d

Please sign in to comment.