Skip to content
Snippets Groups Projects
Commit 31562721 authored by Jean-Baptiste Bayle's avatar Jean-Baptiste Bayle
Browse files

Refuse to use fplan file if no orbit files used

parent 4775f4c0
No related branches found
No related tags found
No related merge requests found
......@@ -537,6 +537,9 @@ class Instrument:
elif isinstance(fplan, str):
logger.info("Using frequency-plan file '%s'", fplan)
self.fplan_file = fplan
# Refuse to use a fplan file if no orbit files are used
if self.orbit_file is None:
raise ValueError("cannot use frequency-plan for non orbit files")
# Without a standard lock config, there is no dataset
# in the frequency-plan file and therefore we cannot use it
if self.lock_config is None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment