Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stla committed Apr 29, 2024
1 parent 52cd55e commit 689f864
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/transformation.R
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,9 @@ changeParameters <- function(Qspray, newParameters) {
newCoeffs <- lapply(coeffs, function(rOQ) {
changeVariables(rOQ, newParameters)
})
toKeep <- which(newCoeffs != 0L)
toKeep <- vapply(newCoeffs, function(rOQ) {
rOQ != 0L
}, logical(1L))
new(
"symbolicQspray",
powers = Qspray@powers[toKeep],
Expand Down

0 comments on commit 689f864

Please sign in to comment.