From a54baf4002f361c81d84733aa5bc12f2264034e1 Mon Sep 17 00:00:00 2001
From: alex <alex@tls-tautenburg.de>
Date: Thu, 7 Mar 2024 09:25:18 +0000
Subject: [PATCH] Fix #56 - LINC selfcal crash in latest master (and latest
 singularity image)

---
 workflows/linc_target.cwl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/workflows/linc_target.cwl b/workflows/linc_target.cwl
index 4ff7af68..22584ed2 100644
--- a/workflows/linc_target.cwl
+++ b/workflows/linc_target.cwl
@@ -241,7 +241,7 @@ steps:
         source: 
           - num_SBs_per_group
           - selfcal
-        valueFrom: '$(self[0] == null ? (self[-1] ? -1 : null) : self[0])'
+        valueFrom: '$(self[0] == null ? (self[1] ? -1 : null) : self[0])'
       - id: reference_stationSB
         source: reference_stationSB
       - id: filter_baselines
-- 
GitLab