From 0dab5c38dff64bf0cd473679494f0978fabe7e05 Mon Sep 17 00:00:00 2001 From: karnem <mikhail.karnevskiy@desy.de> Date: Fri, 27 Sep 2019 15:34:13 +0200 Subject: [PATCH] Fix latex compilation of the table --- notebooks/LPD/LPDChar_Darks_NBC.ipynb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/notebooks/LPD/LPDChar_Darks_NBC.ipynb b/notebooks/LPD/LPDChar_Darks_NBC.ipynb index 5bec878b3..095a747d7 100644 --- a/notebooks/LPD/LPDChar_Darks_NBC.ipynb +++ b/notebooks/LPD/LPDChar_Darks_NBC.ipynb @@ -1190,7 +1190,8 @@ " table.append(line)\n", "\n", "display(Markdown('### Number of bad pixels ###'.format(qm)))\n", - "md = display(Latex(tabulate.tabulate(table, tablefmt='latex', \n", + "if len(table)>0:\n", + " md = display(Latex(tabulate.tabulate(table, tablefmt='latex', \n", " headers=[\"Pixel type\", \"Threshold\", \"New constant\", \"Old constant \"]))) " ] }, -- GitLab