Coverage for python/lsst/sims/maf/utils/getDateVersion.py : 30%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1import time
3__all__ = ['getDateVersion']
5def getDateVersion():
6 """
7 Get today's date and a dictionary with the MAF version information.
8 This is written into configuration output files, to help track MAF runs.
10 Returns
11 -------
12 str, dict
13 String with today's date, Dictionary with version information.
14 """
15 import lsst.sims.maf
17 version = lsst.sims.maf.version
18 #today_date = time.strftime("%x")
19 today_date = '-'.join([time.strftime(x) for x in ["%Y", "%m", "%d"]])
20 versionInfo = {'__version__':version.__version__,
21 '__repo_version__':version.__repo_version__,
22 '__fingerprint__':version.__fingerprint__,
23 '__dependency_versions__':version.__dependency_versions__}
25 return today_date, versionInfo