From d26768027ae5a06ecb01cce24942a988f010eba8 Mon Sep 17 00:00:00 2001 From: ahmedk <karim.ahmed@xfel.eu> Date: Thu, 15 Aug 2024 19:05:16 +0200 Subject: [PATCH] fix: simpler and clearer message --- notebooks/Gotthard2/Correction_Gotthard2_NBC.ipynb | 3 +-- notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb | 3 +-- notebooks/ePix100/Correction_ePix100_NBC.ipynb | 3 +-- notebooks/pnCCD/Correct_pnCCD_NBC.ipynb | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/notebooks/Gotthard2/Correction_Gotthard2_NBC.ipynb b/notebooks/Gotthard2/Correction_Gotthard2_NBC.ipynb index 565260c8f..b2276642a 100644 --- a/notebooks/Gotthard2/Correction_Gotthard2_NBC.ipynb +++ b/notebooks/Gotthard2/Correction_Gotthard2_NBC.ipynb @@ -554,8 +554,7 @@ "if skip_plots:\n", " exit_notebook('Skipping plots as configured.')\n", "if empty_seq == len(seq_files):\n", - " seqs_no = sequences if sequences != [-1] else \"All\"\n", - " exit_notebook(f\"{seqs_no} sequence files has no data to correct.\")" + " exit_notebook(f\"All sequence files contain no data for correction.\")" ] }, { diff --git a/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb b/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb index da7c3d15c..fabc733ce 100644 --- a/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb +++ b/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb @@ -739,8 +739,7 @@ "\n", " step_timer.done_step(f'Saving data time.')\n", "if empty_seq == sum([len(i) for i in mapped_files.values()]):\n", - " seqs_no = sequences if sequences != [-1] else \"All\"\n", - " exit_notebook(f\"{seqs_no} sequence files has no data to correct.\")" + " exit_notebook(f\"All sequence files contain no data for correction.\")" ] }, { diff --git a/notebooks/ePix100/Correction_ePix100_NBC.ipynb b/notebooks/ePix100/Correction_ePix100_NBC.ipynb index 7e976d03e..fc7ce2539 100644 --- a/notebooks/ePix100/Correction_ePix100_NBC.ipynb +++ b/notebooks/ePix100/Correction_ePix100_NBC.ipynb @@ -657,8 +657,7 @@ "\n", " step_timer.done_step('Storing data.')\n", "if empty_seq == len(seq_files):\n", - " seqs_no = sequences if sequences != [-1] else \"All\"\n", - " exit_notebook(f\"{seqs_no} sequence files has no data to correct.\")" + " exit_notebook(f\"All sequence files contain no data for correction.\")" ] }, { diff --git a/notebooks/pnCCD/Correct_pnCCD_NBC.ipynb b/notebooks/pnCCD/Correct_pnCCD_NBC.ipynb index 7d90eb3cf..9ffabbb4b 100644 --- a/notebooks/pnCCD/Correct_pnCCD_NBC.ipynb +++ b/notebooks/pnCCD/Correct_pnCCD_NBC.ipynb @@ -785,8 +785,7 @@ " step_timer.done_step(f'Storing data.')\n", "# Exit and raise warning if there are no data to correct for all sequences.\n", "if empty_seq == len(seq_files):\n", - " seqs_no = sequences if sequences != [-1] else \"All\"\n", - " exit_notebook(f\"{seqs_no} sequence files has no data to correct.\")" + " exit_notebook(f\"All sequence files contain no data for correction.\")" ] }, { -- GitLab