Skip to contents

Assert compatibility between two spaces

Usage

assert_compatible_spaces(g1, g2, fields = c("type", "dim", "template_id"))

Arguments

g1

First GDS or space

g2

Second GDS or space

fields

Fields to compare (subset of c("type","dim","template_id"))

Value

TRUE if compatible; otherwise errors

Examples

sp1 <- space_voxel(c(2,2,2), diag(4), storage = "dense")
sp2 <- space_voxel(c(2,2,2), diag(4), storage = "dense")
assert_compatible_spaces(sp1, sp2)
#> [1] TRUE