CSAFE-ISU / handwriter

Forensic Handwriting Analysis Pipeline in R - Please download our stable version from CRAN using 'install.packages("handwriter")'
https://csafe-isu.github.io/handwriter/
GNU Affero General Public License v3.0
24 stars 9 forks source link

Fixed bug in `fit_model` that saves "model_clusters.rds" and "all_clu… #182

Closed stephaniereinders closed 2 months ago

stephaniereinders commented 2 months ago

…sters.rds"

"model_clusters.rds" and "all_clusters.rds" contain the same data, so fit_model doesn't need to save both files.

I added an argument to get_clusters_batch called 'save_master_file' and made the default FALSE. If TRUE, "all_clusters.rds" will be saved.

Now, fit_model calls get_clusterassignment which calls get_clusters_batch with save_master_file = FALSE, so only "model_clusters.rds" is saved.