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
""" Get today's date and a dictionary with the MAF version information. This is written into configuration output files, to help track MAF runs.
Returns ------- str, dict String with today's date, Dictionary with version information. """ import lsst.sims.maf
version = lsst.sims.maf.version #today_date = time.strftime("%x") today_date = '-'.join([time.strftime(x) for x in ["%Y", "%m", "%d"]]) versionInfo = {'__version__':version.__version__, '__repo_version__':version.__repo_version__, '__fingerprint__':version.__fingerprint__, '__dependency_versions__':version.__dependency_versions__}
return today_date, versionInfo |