Skip to content

Commit

Permalink
Merge pull request #180 from CSAFE-ISU/175-error-in-cluster-assignments
Browse files Browse the repository at this point in the history
Added a few comments
  • Loading branch information
stephaniereinders authored Aug 10, 2024
2 parents 7afb24e + d0ef879 commit 564ff2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/cluster_assignment.R
Original file line number Diff line number Diff line change
Expand Up @@ -481,11 +481,11 @@ get_clusterassignment <- function(main_dir, input_type, writer_indices, doc_indi

# list files in input dir
proclist <- list.files(input_dir, pattern = '.rds', full.names = TRUE)


# get cluster assignments
proclist <- get_clusters_batch(template, input_dir, output_dir, writer_indices, doc_indices, num_cores)

# save clusters
# save clusters in output dir
if (input_type == "model") {
saveRDS(proclist, file.path(main_dir, "data", "model_clusters.rds"))
} else {
Expand Down

0 comments on commit 564ff2a

Please sign in to comment.