File tree Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 11
11
import Ska .DBI
12
12
import tables
13
13
14
+ import cheta .remote_access
14
15
from cheta import fetch
15
16
16
17
opt = None
@@ -167,7 +168,9 @@ def main():
167
168
# fetch.ENG_ARCHIVE. Fetch is a read-only process so this is safe when
168
169
# testing.
169
170
if opt .data_root :
170
- fetch .msid_files .basedir = ":" .join ([opt .data_root , fetch .ENG_ARCHIVE ])
171
+ fetch .msid_files .basedir = ":" .join (
172
+ [opt .data_root , cheta .remote_access .ENG_ARCHIVE ]
173
+ )
171
174
172
175
# Set up logging
173
176
loglevel = pyyaks .logger .VERBOSE if opt .verbose else pyyaks .logger .INFO
Original file line number Diff line number Diff line change 3
3
Derived Parameters
4
4
5
5
The engineering archive has pseudo-MSIDs that are derived via computation from
6
- telemetry MSIDs. All derived parameter names begin with the characters " DP_"
6
+ telemetry MSIDs. All derived parameter names begin with the characters `` DP_``
7
7
(not case sensitive as usual). Otherwise there is no difference from standard
8
8
MSIDs.
9
9
"""
Original file line number Diff line number Diff line change 4
4
5
5
Examples
6
6
========
7
+ ::
7
8
8
9
# Get full-resolution TEPHIN, AOPCADMD for 30 days, and save as telem.zip
9
10
% ska_fetch TEPHIN AOPCADMD --start=2013:001 --stop=2013:030 --sampling=5min \\
Original file line number Diff line number Diff line change 26
26
from ska_helpers .retry import tables_open_file
27
27
28
28
import cheta .derived
29
+ import cheta .remote_access
29
30
from cheta import converters , fetch , file_defs
30
31
31
32
@@ -129,11 +130,15 @@ def get_options(args=None):
129
130
)
130
131
arch_files .update (file_defs .arch_files )
131
132
132
- # Set up fetch so it will first try to read from opt.data_root if that is
133
- # provided as an option and exists, and if not fall back to the default of
134
- # fetch.ENG_ARCHIVE. Fetch is a read-only process so this is safe when testing.
133
+ # Set up fetch so it will first try to read from opt.data_root if that is provided as an
134
+ # option and exists, and if not fall back to the default of
135
+ # cheta.remote_access.ENG_ARCHIVE. In this context that could be overridden with the
136
+ # ENG_ARCHIVE environment variable. Fetch is a read-only process so this is safe when
137
+ # testing.
135
138
if opt .data_root :
136
- fetch .msid_files .basedir = ":" .join ([opt .data_root , fetch .ENG_ARCHIVE ])
139
+ fetch .msid_files .basedir = ":" .join (
140
+ [opt .data_root , cheta .remote_access .ENG_ARCHIVE ]
141
+ )
137
142
138
143
# Set up logging
139
144
loglevel = pyyaks .logger .VERBOSE if opt .log_level is None else int (opt .log_level )
You can’t perform that action at this time.
0 commit comments