Skip to content

Commit

Permalink
Fix default MD logger header prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
bernstei committed Nov 1, 2024
1 parent e534acb commit 5b08766
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wfl/generate/md/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,14 @@ def process_step(interval):
if logger_logfile == "-":
logger_kwargs["logfile"] = "-"
else:
logger_kwargs["logfile"] = f"{logger_logfile}.item_{item_i}"
logger_kwargs["logfile"] = f"{logger_logfile}.config_{item_i}"
logger_kwargs["dyn"] = md
logger_kwargs["atoms"] = at
logger = logger_constructor(**logger_kwargs)
if logger_logfile == "-":
# add prefix to each line
logger.fmt = f"item {item_i} " + logger.fmt
logger.hdr = f"config {item_i} " + logger.hdr
logger.fmt = f"config {item_i} " + logger.fmt
md.attach(logger, logger_interval)

if stage_i > 0:
Expand Down

0 comments on commit 5b08766

Please sign in to comment.