Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lambda_function/src/file_processor/file_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

from sdc_aws_utils.logging import log, configure_logger
from sdc_aws_utils.config import (
INSTR_TO_PKG,
get_instrument_package,
parser as science_filename_parser,
get_instrument_bucket,
)
Expand Down Expand Up @@ -253,7 +253,7 @@ def _calibrate_file(instrument, file_path, dry_run=False):
try:
# Dynamically import instrument package
instr_pkg = __import__(
f"{INSTR_TO_PKG[instrument]}.calibration",
f"{get_instrument_package(instrument)}.calibration",
fromlist=["calibration"],
)
calibration = getattr(instr_pkg, "calibration")
Expand All @@ -262,7 +262,7 @@ def _calibrate_file(instrument, file_path, dry_run=False):
if os.getenv("USE_INSTRUMENT_TEST_DATA") == "True":
log.info("Using test data from instrument package")
instr_pkg_data = __import__(
f"{INSTR_TO_PKG[instrument]}.data",
f"{get_instrument_package(instrument)}.data",
fromlist=["data"],
)
# Get all files in test data directory
Expand Down