Skip to content

Commit

Permalink
Use double ticks for docs render
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Jul 29, 2021
1 parent c574be1 commit 01f9beb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pyhf/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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):
Expand Down

0 comments on commit 01f9beb

Please sign in to comment.