Skip to content

Commit

Permalink
Fix a check of dimnames when checking validity of a MizerParams object.
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavdelius committed Dec 26, 2023
1 parent ee35133 commit 14265e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/MizerSim-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ valid_MizerSim <- function(object) {
msg <- "Second dimension of n_other slot must be called 'component'"
errors <- c(errors, msg)
}
if (!all(dimnames(object@n_pp)$component == names(object@params@other_dynamics))) {
if (!all(dimnames(object@n_other)$component == names(object@params@other_dynamics))) {
msg <- "Second dimension of n_other slot must have same component names as other_dynamics in the params slot"
errors <- c(errors, msg)
}
Expand Down

0 comments on commit 14265e2

Please sign in to comment.