Skip to content

Commit

Permalink
Use standardized obs_base method for collection timestamps.
Browse files Browse the repository at this point in the history
  • Loading branch information
TallJimbo committed Nov 16, 2020
1 parent f820c27 commit bcc2be3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/ctrl/mpexec/cmdLineFwk.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
# Imports of standard modules --
# -------------------------------
import argparse
import datetime
import fnmatch
import logging
import os
Expand All @@ -51,6 +50,7 @@
import lsst.log
import lsst.pex.config as pexConfig
from lsst.pipe.base import GraphBuilder, Pipeline, QuantumGraph
from lsst.obs.base import Instrument
from .dotTools import graph2dot, pipeline2dot
from .executionGraphFixup import ExecutionGraphFixup
from .mpGraphExecutor import MPGraphExecutor
Expand Down Expand Up @@ -204,7 +204,7 @@ def __init__(self, registry: Registry, args: argparse.Namespace, writeable: bool
if args.extend_run:
runName, _ = self.output.chain[0]
else:
runName = "{}/{:%Y%m%dT%Hh%Mm%Ss}".format(self.output, datetime.datetime.now())
runName = "{}/{}".format(self.output, Instrument.makeCollectionTimestamp())
self.outputRun = _OutputRunCollectionInfo(registry, runName)
elif not writeable:
# If we're not writing yet, ok to have no output run.
Expand Down

0 comments on commit bcc2be3

Please sign in to comment.