forked from sot/cheta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
context_files.py
24 lines (20 loc) · 892 Bytes
/
context_files.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from pyyaks.context import ContextDict
basedir = 'test'
FT = ContextDict('ft')
ft = FT.accessor()
FILES = ContextDict('files', basedir=basedir)
FILES.update({'contentdir': '{{ft.content}}/',
'headers': '{{ft.content}}/headers.pickle',
'columns': '{{ft.content}}/columns.pickle',
'columns_all': '{{ft.content}}/columns_all.pickle',
'msiddir': '{{ft.content}}/msid/',
'msid': '{{ft.content}}/msid/{{ft.msid}}',
'archdir': '{{ft.content}}/arch/{{ft.year}}/{{ft.doy}}/',
'archfile': '{{ft.content}}/arch/{{ft.year}}/{{ft.doy}}/{{ft.basename}}',
})
files = FILES.accessor()
# Original archive files
OFILES = ContextDict('of', basedir='/data/cosmos2/tlm')
OFILES.update({'contentdir': '{{ft.content}}/',
})
ofiles = OFILES.accessor()