From d75c25570ae1d1edbc2f752396a26a17a2978e86 Mon Sep 17 00:00:00 2001 From: "Thomson, Alec (CASS, Kensington)" Date: Wed, 22 May 2024 23:27:18 +1000 Subject: [PATCH] Better catch --- arrakis/rmclean_oncuts.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/arrakis/rmclean_oncuts.py b/arrakis/rmclean_oncuts.py index f3809955..0f7a4a3e 100644 --- a/arrakis/rmclean_oncuts.py +++ b/arrakis/rmclean_oncuts.py @@ -86,12 +86,11 @@ def rmclean1d( raise FileNotFoundError(f"File does not exist: '{f}'") nBits = 32 - mDict, aDict = do_RMclean_1D.readFiles( - fdfFile, rmsfFile, weightFile, rmSynthFile, nBits - ) - - # Run RM-CLEAN on the spectrum try: + mDict, aDict = do_RMclean_1D.readFiles( + fdfFile, rmsfFile, weightFile, rmSynthFile, nBits + ) + # Run RM-CLEAN on the spectrum outdict, arrdict = do_RMclean_1D.run_rmclean( mDict=mDict, aDict=aDict,