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

Add timestamp in logs #31

Closed choisant closed 2 weeks ago

choisant commented 3 weeks ago

This will be useful

pglpm commented 3 weeks ago

@choisant Added option appendimestamp to append a timestamp, and appendinfo to append information about the run (number of variates, number of datapoints, number of MC samples).

Since these options are clearly named append..., I think there's no need to change the argument outputdir to something with "suffix". Or? If you agree, feel free to close this issue :)

pglpm commented 3 weeks ago

Added recurring timestamps in the logs produced by inferpopulation.

choisant commented 2 weeks ago

@pglpm This is not what this issue was about. This is about adding a timestamp in the logs instead of just the elapsed time.

pglpm commented 2 weeks ago

@choisant Mmm... then I don't understand. You mean in the file name? The current update prints the current time recurrently within the log file.

choisant commented 2 weeks ago

Nevermind, I see it now:


            strftime(as.POSIXlt(Sys.time()), '%Y-%m-%d %H:%M:%S'))```