Commit 4982193a authored by Marc Arene's avatar Marc Arene
Browse files

Printing the date of the run in the logger file.

parent 75832658
......@@ -7,6 +7,7 @@ sys.path.append('../')
import os
import numpy as np
import time
import datetime
from optparse import OptionParser
from configparser import ConfigParser
import subprocess
......@@ -113,6 +114,9 @@ if __name__ == '__main__':
outdir = opts.outdir
cut.setup_logger(cut.logger, outdir=outdir, label='logger', log_level='INFO')
today = datetime.datetime.today()
today_fmt = '{:%d/%m/%y at %Hh%M}'.format(today)
cut.logger.info(f'\n\n\n\n\nToday is the {today_fmt}.')
cut.logger.info(f'Output directory is: {outdir}')
# cut.logger.info(f'Run `$ tail -f {outdir}logger.log` to follow the run')
# import IPython; IPython.embed(); sys.exit()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment