From ab241c4f3839f9d1ffeba95d2108ac7bc0ec4f88 Mon Sep 17 00:00:00 2001 From: Huw Jenkins Date: Wed, 27 Nov 2024 21:30:03 +0000 Subject: [PATCH 1/2] ctffind_runner: more informative error message when CTFFIND fails for every micrograph --- src/ctffind_runner.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ctffind_runner.cpp b/src/ctffind_runner.cpp index 9b7f1bc28..1ae1c3d67 100644 --- a/src/ctffind_runner.cpp +++ b/src/ctffind_runner.cpp @@ -460,6 +460,8 @@ void CtffindRunner::joinCtffindResults() if (verb > 0 && imic % 60 == 0) progress_bar(imic); } + if (MDctf.isEmpty()) + REPORT_ERROR( (std::string) fn_ctffind_exe + " failed to estimate CTF parameters for any micrograph, exiting..."); if (is_tomo) { From db27b77a9e4042dbfa96ba5704829dec89a62d1f Mon Sep 17 00:00:00 2001 From: Huw Jenkins Date: Thu, 28 Nov 2024 15:36:40 +0000 Subject: [PATCH 2/2] Add LC_ALL=C to script used to call CTFFIND written by relion_run_ctffind --- src/ctffind_runner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ctffind_runner.cpp b/src/ctffind_runner.cpp index 1ae1c3d67..9f9c63f79 100644 --- a/src/ctffind_runner.cpp +++ b/src/ctffind_runner.cpp @@ -694,7 +694,7 @@ void CtffindRunner::executeCtffind4(long int imic) // Write script to run ctffind fh << "#!/usr/bin/env " << fn_shell << std::endl; - fh << fn_ctffind_exe << ctffind4_options << " > " << fn_log << " << EOF"< " << fn_log << " << EOF"<