pglpm / bayes_nonparametric_inference

Software development for "Bayesian nonparametric population inference". In other words, just the direct application of probability theory to get the most general, principled, model-free inference we can have.
Creative Commons Zero v1.0 Universal
4 stars 1 forks source link

nameroot (name folder and output files) #8

Closed choisant closed 2 weeks ago

choisant commented 1 month ago

Discuss and find a good solution for this.

choisant commented 3 weeks ago

We should have two options: timestamp and mcinformation. These are both Booleans. Timestamp = unique number mcinformation = the string we have now Also prefix for folder names.

choisant commented 2 weeks ago

Updated in inferpopulation:


  suffix <- NULL
  if (appendtimestamp) {
    suffix <- paste0(suffix, '-',
                     strftime(as.POSIXlt(Sys.time()), '%y%m%dT%H%M%S') )
  }
  if (appendinfo) {
    suffix <- paste0(suffix,
                     '-vrt', nrow(auxmetadata),
                     '_dat',
                     (if (npoints == 1 && all(is.na(data))) {
                        0
                      } else {
                        npoints
                      }),
                     ## '-K', nclusters, # unimportant for user
                     '_smp', nsamples)
  }
  dirname <- paste0(outputdir, suffix)```