From 35fea3d13f084270a483cb169ea25adfb4ba7f6f Mon Sep 17 00:00:00 2001 From: Jorrit Schaap <schaap@astron.nl> Date: Tue, 13 Jul 2021 20:39:01 +0200 Subject: [PATCH] TMSS-849: TODO: re-enable transit_offset after summer holiday --- .../scheduling/lib/constraints/template_constraints_v1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SAS/TMSS/backend/services/scheduling/lib/constraints/template_constraints_v1.py b/SAS/TMSS/backend/services/scheduling/lib/constraints/template_constraints_v1.py index 4977850b8a6..45c2c1e56c6 100644 --- a/SAS/TMSS/backend/services/scheduling/lib/constraints/template_constraints_v1.py +++ b/SAS/TMSS/backend/services/scheduling/lib/constraints/template_constraints_v1.py @@ -302,7 +302,7 @@ def can_run_anywhere_within_timewindow_with_sky_constraints(scheduling_unit: mod else: logger.info('min_target_elevation=%s constraint is not met at timestamp=%s' % (min_elevation.rad, timestamps[i])) return False - if 'transit_offset' in constraints['sky'] and 'from' in constraints['sky']['transit_offset'] and task['specifications_template'] == 'target observation': + if False: #TODO: re-enable transit_offset after summer holiday. 'transit_offset' in constraints['sky'] and 'from' in constraints['sky']['transit_offset'] and task['specifications_template'] == 'target observation': # Check constraint on tile beam for HBA only: if task['specifications_doc']['antenna_set'].startswith('HBA'): # since the constraint only applies to the middle of the obs, consider its duration @@ -330,7 +330,7 @@ def can_run_anywhere_within_timewindow_with_sky_constraints(scheduling_unit: mod return False if 'SAPs' in task['specifications_doc']: - if 'transit_offset' in constraints['sky'] and 'from' in constraints['sky']['transit_offset'] and task['specifications_template'] == 'target observation': + if False: #TODO: re-enable transit_offset after summer holiday. 'transit_offset' in constraints['sky'] and 'from' in constraints['sky']['transit_offset'] and task['specifications_template'] == 'target observation': # Check constraint on SAPs for LBA only: if task['specifications_doc']['antenna_set'].startswith('LBA'): # since the constraint only applies to the middle of the obs, consider its duration -- GitLab