Skip to content

Commit e22ac4f

Browse files
committed
Fix problem introduced by #269
1 parent 5ce8dec commit e22ac4f

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

cheta/check_integrity.py

+4-1
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/update_archive.py

+9-4
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)