diff --git a/SAS/TMSS/backend/src/tmss/tmssapp/subtasks.py b/SAS/TMSS/backend/src/tmss/tmssapp/subtasks.py index 8e893cc968d43961eee7cbe1128ea5785f1577e8..845f0a5fc9224490af689e1ac6b21d2e20f5fd62 100644 --- a/SAS/TMSS/backend/src/tmss/tmssapp/subtasks.py +++ b/SAS/TMSS/backend/src/tmss/tmssapp/subtasks.py @@ -141,7 +141,8 @@ def _generate_tab_ring_pointings(pointing, tab_rings) -> [dict]: tab_nr = 0 for angle1, angle2 in coordinates: target = "TAB %s around %s" % pointing.get(tab_nr, 'target', "(%s,%s)" % (pointing['angle1'], pointing['angle2'])) - tab_pointings.append(_add_pointings(pointing, {'angle1': angle1, 'angle2': angle2, 'direction_type': pointing['direction_type'], 'target': target}) + relative_pointing = {'angle1': angle1, 'angle2': angle2, 'direction_type': pointing['direction_type'], 'target': target} + tab_pointings.append(_add_pointings(pointing, relative_pointing, target=target)) return tab_pointings