Skip to content

Commit

Permalink
Add some missing documentation entries
Browse files Browse the repository at this point in the history
  • Loading branch information
grimbough committed Oct 8, 2024
1 parent 8599443 commit 79705b1
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 19 deletions.
38 changes: 19 additions & 19 deletions R/ZarrArray-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,30 +54,30 @@ ZarrArraySeed <- function(zarr_array_path) {
)
}

.validate_ZarrArraySeed <- function(x) {

## 'dim' slot.
msg <- S4Arrays:::validate_dim_slot(x, "dim")
if (!isTRUE(msg))
return(msg)

## 'chunkdim' slot.
x_chunkdim <- x@chunk_dim
if (!is.null(x_chunkdim)) {
msg <- S4Arrays:::validate_dim_slot(x, "chunk_dim")
if (!isTRUE(msg))
return(msg)
}

}

setValidity2("ZarrArraySeed", .validate_ZarrArraySeed)
# .validate_ZarrArraySeed <- function(x) {
#
# ## 'dim' slot.
# msg <- S4Arrays:::validate_dim_slot(x, "dim")
# if (!isTRUE(msg))
# return(msg)
#
# ## 'chunkdim' slot.
# x_chunkdim <- x@chunk_dim
# if (!is.null(x_chunkdim)) {
# msg <- S4Arrays:::validate_dim_slot(x, "chunk_dim")
# if (!isTRUE(msg))
# return(msg)
# }
#
# }
#
# setValidity2("ZarrArraySeed", .validate_ZarrArraySeed)

### --------------------------------
### ZarrArray and ZarrMatrix objects
### --------------------------------

#' @aliases ZarrArray-class matrixClass,ZarrArray-method
#' @aliases ZarrArray-class matrixClass,ZarrArray-method chunkdim,ZarrArraySeed-method
#' @rdname ZarrArray-classes
#'
#' @param zarr_array_path Path to a Zarr array. A character vector of length 1.
Expand Down
21 changes: 21 additions & 0 deletions R/writeZarrArray.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,27 @@
### -------------------------------------------------------------------------
###

#' Write arrays to Zarr
#'
#' Write array data to a Zarr backend via \pkg{DelayedArray}'s \linkS4class{RealizationSink} machinery.
#'
#' @aliases
#' writeZarrArray
#' ZarrRealizationSink
#' ZarrRealizationSink-class
#' write_block,ZarrRealizationSink-method
#' type,ZarrRealizationSink-method
#' chunkdim,ZarrRealizationSink-method
#' coerce,ZarrRealizationSink,ZarrMatrix-method
#' coerce,ZarrRealizationSink,ZarrArray-method
#' coerce,ZarrRealizationSink,ZarrArraySeed-method
#' coerce,ZarrRealizationSink,DelayedArray-method
#' coerce,ANY,ZarrArray-method
#' coerce,ANY,ZarrRealizationSink-method
#'
#' @name ZarrRealizationSink
NULL


### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
### ZarrRealizationSink objects
Expand Down
1 change: 1 addition & 0 deletions man/ZarrArray-classes.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions man/ZarrRealizationSink.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 79705b1

Please sign in to comment.