From 01f9bebe1171681c25429a77ce2dc8c09ea3f3be Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Wed, 28 Jul 2021 22:37:42 -0500 Subject: [PATCH] Use double ticks for docs render --- src/pyhf/pdf.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pyhf/pdf.py b/src/pyhf/pdf.py index c0462fd79a..62eda1eb33 100644 --- a/src/pyhf/pdf.py +++ b/src/pyhf/pdf.py @@ -324,7 +324,7 @@ def par_names(self, fstring='{name}[{index}]'): The names of the parameters in the model including binned-parameter indexing. Args: - fstring (:obj:`str`): Format string for the parameter names using `name` and `index` variables. Default: '{name}[{index}]'. + fstring (:obj:`str`): Format string for the parameter names using ``name`` and ``index`` variables. Default: ``'{name}[{index}]'``. Returns: :obj:`list`: Names of the model parameters. @@ -346,7 +346,9 @@ def par_names(self, fstring='{name}[{index}]'): _names.append(name) continue - _names.extend([fstring.format(name=name, index=i) for i in range(_npars)]) + _names.extend( + [fstring.format(name=name, index=idx) for idx in range(_npars)] + ) return _names def param_set(self, name):