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

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

import time 

 

__all__ = ['getDateVersion'] 

 

def getDateVersion(): 

""" 

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