Skip to content

decomposition does not work properly with hyperSpec objects containing no spectra #289

Open

Description

@galaxismad

Using the decomposition function with an hyperSpec function containing no spectra leads to an error with out of bounds description.

Error in xj[i, , drop = FALSE] : Indexing out of bounds

related issue: #288

Activity

  1. added
    Type: bug 💣
    on Dec 18, 2020
  2. GegznaV commented on Dec 21, 2020

    @GegznaV
    Collaborator

    @galaxismad could you provide a minimal reproducible example to test this behavior?

  3. galaxismad commented on Dec 21, 2020

    @galaxismad
    Author
    spc <- new("hyperSpec", wavelength = 1:20, spc = matrix(NA, ncol = 20, nrow = 0))
    decomposition(spc, matrix(20:1, ncol = 20, nrow = 1), scores = FALSE)

    It would be expected, that the matrix is replacing the empty spc column, as a valid wavelength axis is available.

  4. GegznaV commented on Dec 21, 2020

    @GegznaV
    Collaborator

    @galaxismad thank you for the clarification.

  5. GegznaV commented on Dec 21, 2020

    @GegznaV
    Collaborator

    Possibly related: #144

  6. self-assigned this
    on Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type: bug 💣

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions