Skip to content

Should subsetPixels support SpectralImagingArrays? #58

Description

@kuwisdelu

It currently breaks without a helpful error message.

It is currently defined as:

x[, pixels(x, ..., env = parent.frame(1))]

We can support SpectralImagingArrays and similar classes with something like:

if ( is.null(length(dim(x))) ) {
    x[pixels(x, ..., env = parent.frame(1))]
} else {
    x[,pixels(x, ..., env = parent.frame(1))]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions