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 4977850b8a65479a9f7a205ae3e6ed6731828c76..45c2c1e56c6e2be20604a3f1ca3b20e56f8d9a24 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