Skip to content

Commit

Permalink
Change first arg of .procResCovGraphSingleModel from to
Browse files Browse the repository at this point in the history
  • Loading branch information
maltelueken committed Oct 17, 2023
1 parent 43a9b69 commit cf5f840
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions R/classicProcess.R
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ procModelGraphSingleModel <- function(modelOptions, globalDependent, options) {
) next

if (is.null(modelsContainer[[modelName]][["resCovGraph"]])) {
resCovGraph <- .procResCovGraphSingleModel(modelsContainer[[modelName]], modelOptions)
resCovGraph <- .procResCovGraphSingleModel(modelsContainer[[modelName]][["graph"]]$object, modelOptions)
state <- createJaspState(object = resCovGraph)
state$dependOn(
optionContainsValue = list(processModels = modelOptions),
Expand Down Expand Up @@ -656,8 +656,7 @@ procModelGraphSingleModel <- function(modelOptions, globalDependent, options) {
return(graph)
}

.procResCovGraphSingleModel <- function(container, modelOptions) {
graph <- container[["graph"]]$object
.procResCovGraphSingleModel <- function(graph, modelOptions) {
# Create new graph for covariances because we don't care about direction
resCovGraph <- igraph::make_empty_graph(directed = FALSE)

Expand Down

0 comments on commit cf5f840

Please sign in to comment.