Skip to content

Changes For Running Without Preselector #308

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ services:
- PATH_TO_CLIENT_CERT
- PATH_TO_VERIFY_CERT
- POSTGRES_PASSWORD
- PRESELECTOR_CLASS
- PRESELECTOR_MODULE
- SCOS_SENSOR_GIT_TAG
- SECRET_KEY
- SIGAN_MODULE
Expand Down
2 changes: 2 additions & 0 deletions env.template
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ SIGAN_MODULE=scos_tekrsa.hardware.tekrsa_sigan
USB_DEVICE=Tektronix
DEVICE_MODEL=RSA507A
BASE_IMAGE=ghcr.io/ntia/scos-tekrsa/tekrsa_usb:latest
PRESELECTOR_MODULE="its_preselector.web_relay_preselector"
PRESELECTOR_CLASS="WebRelayPreselector"

# SECURITY WARNING: You should be using certs from a trusted authority.
# If you don't have any, try letsencrypt or a similar service.
Expand Down
2 changes: 1 addition & 1 deletion src/initialization/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def load_preselector(
logger.debug(
f"loading {preselector_class_name} from {module} with config: {preselector_config}"
)
if module is not None and preselector_class_name is not None:
if module and preselector_class_name:
preselector_module = importlib.import_module(module)
preselector_constructor = getattr(preselector_module, preselector_class_name)
preselector_config = load_from_json(preselector_config)
Expand Down