Skip to content

Collapse also "destroys" the column names of the spectra matrix (in $spc). #89

Closed

Description

@cbeleites

Collapse also "destroys" the column names of the spectra matrix (in $spc).

head (colnames (chondro$spc))
[1] "602" "606" "610" "614" "618" "622"

after collapsing, there are some weird numbers

head(colnames(collapse (chondro, chondro)$spc))
[1] "40399536128" "40667971584" "40936407040" "41204842496" "41473277952" "41741713408"

Originally posted by @galaxismad in #87 (comment)

Activity

  1. self-assigned this
    on Dec 17, 2019
  2. added
    Type: bug 💣
    Status: confirmed ❕
    Topic: unit test 1️⃣
    on Dec 17, 2019
  3. cbeleites commented on Dec 17, 2019

    @cbeleites
    OwnerAuthor

    Turns out this is a consequence of the constructor initialize() not ensuring column names of the spectra matrix in the same way wl<- does.

  4. cbeleites commented on Dec 17, 2019

    @cbeleites
    OwnerAuthor

    Solution: make initialize()/new("hyperSpec", ...) behave like setting the wavelength with wl<-'s documented behaviour for consistency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Status: confirmed ❕Topic: unit test 1️⃣Type: bug 💣

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions