From 17af5be918e4b8c3f1ff8501e7e95fe738de35d3 Mon Sep 17 00:00:00 2001 From: karnem <mikhail.karnevskiy@desy.de> Date: Thu, 13 Jun 2019 14:32:35 +0200 Subject: [PATCH] remane variable --- xfel_calibrate/calibrate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xfel_calibrate/calibrate.py b/xfel_calibrate/calibrate.py index f8784b31b..b8ecfb7ae 100755 --- a/xfel_calibrate/calibrate.py +++ b/xfel_calibrate/calibrate.py @@ -369,7 +369,7 @@ def flatten_list(l): return "_".join([str(flatten_list(v)) for v in l]) if isinstance(l, list) else l -def set_figure_format(nb, param): +def set_figure_format(nb, enable_vector_format): """ Set svg format in inline backend for figures @@ -381,7 +381,7 @@ def set_figure_format(nb, param): :param param: value of corresponding parameter """ - if param: + if enable_vector_format: cell = get_cell_n(nb, 'code', 1) cell.source += "\n%config InlineBackend.figure_formats = ['svg']\n" -- GitLab