Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 11, 2021
1 parent 1ae91c3 commit 011b5fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/pyhf/cli/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,7 @@ def inspect(workspace, output_file, measurement):
model = ws.model()

result['parameters'] = sorted(
[
(k, parset_descr[type(v['paramset'])])
for k, v in model.config.par_map.items()
]
(k, parset_descr[type(v['paramset'])]) for k, v in model.config.par_map.items()
)
result['systematics'] = [
(
Expand Down
2 changes: 1 addition & 1 deletion src/pyhf/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def __init__(self, spec, **config_kwargs):
def set_parameters(self, _required_paramsets):
self._create_and_register_paramsets(_required_paramsets)
self.npars = len(self.suggested_init())
self.parameters = sorted([k for k in self.par_map.keys()])
self.parameters = sorted(k for k in self.par_map.keys())

def suggested_init(self):
"""
Expand Down

0 comments on commit 011b5fe

Please sign in to comment.