From 82e5c8350c0e2d51a1530e0248231de88d82ca79 Mon Sep 17 00:00:00 2001
From: David rafferty <rafferty@strw.leidenuniv.nl>
Date: Thu, 28 Oct 2021 10:12:57 +0000
Subject: [PATCH] Move residual step before smooth one

Former-commit-id: e12a8059fcb405b66449d3f350bdd470fcc8241c [formerly 8484f1ba0f7e199a083b6fef92a51e295bf5bb3e]
Former-commit-id: c6a0ede54c15df58ad245d64ce974b0dcb40f7e4
Former-commit-id: 0526c4cb6eb73ef43889ead27b00ec26e3f2364e
---
 subworkflow/clocktec.cwl | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/subworkflow/clocktec.cwl b/subworkflow/clocktec.cwl
index 6dedf0a6..648b6b90 100644
--- a/subworkflow/clocktec.cwl
+++ b/subworkflow/clocktec.cwl
@@ -105,7 +105,7 @@ steps:
       - id: soltab
         default: sol000/clock
       - id: soltabOut
-        default: clockOrig
+        default: OrigClock
     out:
       - id: output_h5parm
       - id: log
@@ -136,6 +136,9 @@ steps:
     'sbg:x': 900
     'sbg:y': 0
   - id: losoto_residual
+    doc: |
+      Note: this step uses the OrigClock solutions, to ensure that the
+      unsmoothed clock is used to calculate the residuals
     in:
       - id: input_h5parm
         source: smooth/output_h5parm
@@ -144,7 +147,7 @@ steps:
       - id: soltabsToSub
         source:
           - fit3rdorder
-        valueFrom: '$(self ? ["tec", "clock", "tec3rd"] : ["tec", "clock"])'
+        valueFrom: '$(self ? ["tec", "OrigClock", "tec3rd"] : ["tec", "OrigClock"])'
     out:
       - id: output_h5parm
       - id: log
-- 
GitLab