Skip to content

Commit 1593d6f

Browse files
authored
Merge pull request #273 from sot/fix-fetch-engarchive-break
Fix update scripts broken in #269 + unrelated docs fixes
2 parents 5ce8dec + de25a1e commit 1593d6f

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

cheta/check_integrity.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import Ska.DBI
1212
import tables
1313

14+
import cheta.remote_access
1415
from cheta import fetch
1516

1617
opt = None
@@ -167,7 +168,9 @@ def main():
167168
# fetch.ENG_ARCHIVE. Fetch is a read-only process so this is safe when
168169
# testing.
169170
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+
)
171174

172175
# Set up logging
173176
loglevel = pyyaks.logger.VERBOSE if opt.verbose else pyyaks.logger.INFO

cheta/derived/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Derived Parameters
44
55
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_``
77
(not case sensitive as usual). Otherwise there is no difference from standard
88
MSIDs.
99
"""

cheta/get_telem.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
Examples
66
========
7+
::
78
89
# Get full-resolution TEPHIN, AOPCADMD for 30 days, and save as telem.zip
910
% ska_fetch TEPHIN AOPCADMD --start=2013:001 --stop=2013:030 --sampling=5min \\

cheta/update_archive.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
from ska_helpers.retry import tables_open_file
2727

2828
import cheta.derived
29+
import cheta.remote_access
2930
from cheta import converters, fetch, file_defs
3031

3132

@@ -129,11 +130,15 @@ def get_options(args=None):
129130
)
130131
arch_files.update(file_defs.arch_files)
131132

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.
135138
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+
)
137142

138143
# Set up logging
139144
loglevel = pyyaks.logger.VERBOSE if opt.log_level is None else int(opt.log_level)

0 commit comments

Comments
 (0)