Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silently drop wl where sensdata is 0 if required #203

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Bisaloo
Copy link
Collaborator

@Bisaloo Bisaloo commented Jun 11, 2020

fix #74

@thomased
Copy link
Collaborator

Nice one — cheers. Look good to me.

@@ -279,14 +275,14 @@ vismodel <- function(rspecdata,
illum <- bgil[, grep(illum2, names(bgil))]
}
if (illum2 == "ideal") {
illum <- rep(1, dim(rspecdata)[1])
illum <- rep_len(1, 401)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hum, now that I think about it, there is an issue with this since the user could provide a user-defined S that has the correct length to match the data but still rely on bundled values for other arguments. In this case, the new if branch would never be explored and we would end up the illum having the wrong length

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vismodel 'cie2' and 'cie10' do not accept 390:700 rspecdata
2 participants