Hide keyboard shortcuts

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 

2 

3__all__ = ['getDateVersion'] 

4 

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. 

9 

10 Returns 

11 ------- 

12 str, dict 

13 String with today's date, Dictionary with version information. 

14 """ 

15 import lsst.sims.maf 

16 

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__} 

24 

25 return today_date, versionInfo