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

Refuse to use fplan file if no orbit files used

parent 03831647
No related branches found
No related tags found
1 merge request!167Resolve "Do not accept fplan files for simulations without an orbit files"
This commit is part of merge request !167. Comments created here will be created in the context of that merge request.
...@@ -549,6 +549,9 @@ class Instrument: ...@@ -549,6 +549,9 @@ class Instrument:
elif isinstance(fplan, str): elif isinstance(fplan, str):
logger.info("Using frequency-plan file '%s'", fplan) logger.info("Using frequency-plan file '%s'", fplan)
self.fplan_file = 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 # Without a standard lock config, there is no dataset
# in the frequency-plan file and therefore we cannot use it # in the frequency-plan file and therefore we cannot use it
if self.lock_config is None: 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