Skip to content

Commit

Permalink
cleanup old comment
Browse files Browse the repository at this point in the history
  • Loading branch information
LouiseDck committed Nov 30, 2023
1 parent 227f55d commit ad72272
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion R/write_h5ad_helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ write_h5ad_string_array <- function(value, file, name, compression, version = "0
#' @param version Encoding version of the element to write
write_h5ad_categorical <- function(value, file, name, compression, version = "0.2.0") {
rhdf5::h5createGroup(file, name)
# TODO: change this to just writing?
hdf5_write_compressed(file, paste0(name, "/categories"), as.integer(levels(value)), compression)
hdf5_write_compressed(file, paste0(name, "/codes"), as.integer(value), compression)
hdf5_write_compressed(file, paste0(name, "/ordered"), is.ordered(value), compression)
Expand Down

0 comments on commit ad72272

Please sign in to comment.