From c5d70e827aba757b33815abcb96fb0ac7e52b36d Mon Sep 17 00:00:00 2001
From: lkugler <lukas.kugler@gmail.com>
Date: Thu, 1 Jun 2023 00:07:18 +0200
Subject: [PATCH] fix obscfg is dict

---
 dartwrf/assim_synth_obs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dartwrf/assim_synth_obs.py b/dartwrf/assim_synth_obs.py
index 91a063e..5b33544 100755
--- a/dartwrf/assim_synth_obs.py
+++ b/dartwrf/assim_synth_obs.py
@@ -443,7 +443,7 @@ def link_DART_binaries_and_RTTOV_files():
 
         print('prepared DART & RTTOV links in', cluster.dart_rundir)
     except Exception as e:
-        if any([hasattr(obscfg, 'sat_channel') for obscfg in exp.observations]):
+        if any(['sat_channel' in obscfg for obscfg in exp.observations]):
             raise e
         else:
             pass  # we dont need RTTOV anyway
-- 
GitLab