Skip to content

Commit

Permalink
add warning
Browse files Browse the repository at this point in the history
  • Loading branch information
thijsjanzen committed May 23, 2024
1 parent e17710d commit 6db49a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
9 changes: 0 additions & 9 deletions R/secsse_loglik.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,6 @@ master_loglik <- function(parameter,
num_unique_traits = num_modeled_traits,
traitStates = traitStates)
}

for (i in 1:nrow(states)) {
v <- sum(states[i, ])
if (!is.na(v)) {
if (v == 0) {
cat("states entry zero: ", i, states[i, ], "\n")
}
}
}

RcppParallel::setThreadOptions(numThreads = num_threads)
calcul <- calc_ll_cpp(rhs = if (using_cla) "ode_cla" else "ode_standard",
Expand Down
3 changes: 3 additions & 0 deletions R/secsse_prep.R
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ create_q_matrix <- function(state_names,
diff.conceal = FALSE) {

total_num_states <- length(state_names)
if (total_num_states != num_concealed_states) {
stop("number of concealed states has to be equal to the number of observed states")
}
trans_matrix <- matrix(0, ncol = total_num_states,
nrow = total_num_states)

Expand Down

0 comments on commit 6db49a5

Please sign in to comment.